swift3 - How to protect secret key

后端 未结 2 953
粉色の甜心
粉色の甜心 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: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.

提交回复
热议问题