How do I store my secret key?

How do I store my secret key?
Answer
1 Answer
  1. Create a key pair at your server, store public and private keys. …
  2. Include the public key in your application;
  3. The application uses a secure random generator to create an AES key;
  4. The data is encrypted using CBC and PKCS#7 padding, also include a HMAC (possibly with yet another random AES key);
 

Tìm kiếm

Back
Top