Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encryption of String AES PBKDF2

I am new to encryption, I used encryption techniques of all types,but client particularly asking about PBKDF2 encryption technique. Any Help?

like image 802
user3149246 Avatar asked Oct 01 '22 22:10

user3149246


1 Answers

PBKDF2 is a method to create a secure encryption key from a password. PBKDF2 stands for "Password-Based Key Derivation Function 2".
You will also need to provide the number of rounds, see PBKDF2 Calibration.

AES is an encryption method. AES stands for "Advanced Encryption Standard".
Other things you will need to handle:

  • Encryption mode
  • IV (Initialization Vector)
  • Padding
  • Key size

Both PBKDF2 and AES are supported by iOS CommonCrypto.

What you need to do is a two step process:

  1. Use PBKDF2 to create an encryption key from a password string.
  2. Then encrypt the data using the encryption key.

Finally you will need to secure the encryption key.

like image 199
zaph Avatar answered Oct 05 '22 10:10

zaph