I'm creating a HIPPA compliant web app in JAVA and for that i'm using
BCryptPasswordEncoder().encode("12345678");
My Questions are:
1: Does the Hash generated by above code is encrypted by AES Algorithm?
2: Does the Hash generated by above code is encrypted by minimum 256 bit key?
BCrypt doesn't use AES. It uses Blowfish which is a sibling/predecessor to AES.
Password hashing creates a huge number from the original input. BCrypt protects against the following kinds of attacks:
Usually, symmetric codecs like AES and blowfish aren't suitable for hashing password (since you can decode the output when you know the key). BCrypt works around this by initializing the codec with the password and then encoding a known message (OrpheanBeholderScryDoubt) to create a 192 bit "hash value".
The input is 72 bytes max but most implementations only use 56 bytes of that. The key which is used to encrypt the known message is 448 bits and is built from an initial key + salt + password. The result is cost followed by 128bit salt and 192 "hash"
Related:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With