Tuesday, 11 November 2014

Java File Encryption Decryption using Password Based Encryption.


How PBE Works (Password Based Encryption)

  • A user supplied password which is a simple text phrase that can be easily remembered by the user.
  • Along with that password text, a random number which is called salt is added and hashed.
  • Using this a AES or a DES encryption key is derived and encrypted.
  • The password text is shared between the two parties exchanging the encrypted content.
  • The receiver, uses the same password  and salt and decrypts the content.
  • Here the key is passing or preserving the password phrase in a secure manner.

No comments:

Post a Comment