How to store credit card info on iphone?

前端 未结 4 1882
情话喂你
情话喂你 2021-01-13 09:53

I have requirement to store credit card number in iPhone app. How to store the data secure manner. I have looked at keychain. Apart from it, is there anything i can use.

4条回答
  •  庸人自扰
    2021-01-13 10:21

    As mentioned above, you should first look into the legality of this, especially with Apple restrictions on what goes in the app store.

    That said, I have had to encrypt sensitive information before, and decided to go overboard with AES-256 encryption. Since usernames, passwords and personal data were being sent over a network, it was necessary. I used FBEncrypt for this - it's a great wrapper around CCCrypt.

    https://github.com/dev5tec/FBEncryptor

    That will allow you to do base-64 encoding and AES-256 encoding, among other things, and it is really convenient. Check it out if you really need it!

提交回复
热议问题