swift3 - How to protect secret key

后端 未结 2 954
粉色の甜心
粉色の甜心 2021-01-14 07:57

I am new of iOS swift 3 development. Now, I am working on a project which needs encryption, message authentication code(MAC) and Hashed-base-MAC. These algorithms require se

相关标签:
2条回答
  • 2021-01-14 08:17

    Check iCloud Keychain (based on your tags [ios], [swift], [key]).

    It functions as a secure database that allows information including a user's website login passwords, Wi-Fi network passwords, credit/debit card management (though without CVV), and other account data, to be securely stored for quick access and auto-fill on webpages and elsewhere when the user needs instant access to them. They are always stored encrypted using 256-bit AES encryption, are stored on device and pushed from iCloud between devices, and only available on a user's trusted devices.

    0 讨论(0)
  • 2021-01-14 08:25

    Don't store the key at all. Perform a Diffie-Hellman key exchange to start an asymmetrically encrypted channel, and use this channel to send across a symmetric key to the client, which can be used for subsequent client use.

    0 讨论(0)
提交回复
热议问题