Bcrypt Algorithm (2024)

Bcrypt Algorithm (1)Bcrypt Algorithm (2) Bcrypt Algorithm (3) Bcrypt Algorithm (4)
Next: Implementation Up: A Future-Adaptable Password Scheme Previous: Eksblowfish AlgorithmThe problems present in traditional UNIX password hashes led naturallyto a new password scheme which we call bcrypt, referring to theBlowfish encryption algorithm. Bcrypt uses a 128-bit salt andencrypts a 192-bit magic value. It takes advantage of the expensivekey setup in eksblowfish.

The bcrypt algorithm runs in two phases, sketched inFigure3. In the first phase, EksBlowfishSetup iscalled with the cost, the salt, and the password, to initializeeksblowfish's state. Most of bcrypt's time is spent in theexpensive key schedule. Following that, the 192-bit value``OrpheanBeholderScryDoubt'' is encrypted 64 times usingeksblowfish in ECB mode with the state from the previousphase. The output is the cost and 128-bit salt concatenated with theresult of the encryption loop.

Figure 3:The bcrypt algorithm for hashing UNIX passwords, based oneksblowfish.
Bcrypt Algorithm (5)

In Section3, we derived that an Bcrypt Algorithm (6)-securepassword function should fulfill several important criteria: secondpreimage-resistance, a salt space large enough to defeatprecomputation attacks, and an adaptable cost. We believe thatBcrypt achieves all three properties, and that it can beBcrypt Algorithm (7)-secure with useful values of Bcrypt Algorithm (8) for years to come.Though we cannot formally prove bcrypt Bcrypt Algorithm (9)-secure, anyflaw would likely deal a serious blow to the well-studied blowfishencryption algorithm.

Bcrypt Algorithm (10) Bcrypt Algorithm (11) Bcrypt Algorithm (12)
Next: Implementation Up: A Future-Adaptable Password Scheme Previous: Eksblowfish Algorithm
Niels Provos and David Mazieres
4/28/1999
Bcrypt Algorithm (2024)
Top Articles
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6493

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.