What encryption is this? [duplicate]

0

I came across this type: $2a$08$Cf1f11ePArKlBJomM0F6a.xzfpEexCPc/xm.u/Tv/pK6K..cagbv. encryption in a customer database but I do not know, does anyone know what it is?

    
asked by anonymous 04.04.2017 / 06:41

1 answer

2

I think this is bcrypt. By any chance is this in the passwords column?

The traditional hash functions MD5, sha1, ... do not guarantee that the result is really safe, ie from the value stored in the DB that can not guess what its original value. This is because the passwords have little information, usually 6 characters.

To correct this hash functions like bcrypt were created, where a factor of randomness and its level of difficulty is added (roughly is the amount of iterations). For more information: Encrypting passwords in PHP using bcrypt (Blowfish) (I highly recommend the reading).

For the manipulation of the result and later verification of passwords the information of the method used and its cost (difficulty) is stored. In your case

Method: $ a2 - > bcrypt

Cost: $ 08 - > difficulty 8

What is left over is the result of the hash function.

    
04.04.2017 / 08:35