Monday, August 18, 2014

Use 'bcrypt' algorithm for hashing passwords

bcrypt is an adaptive password hashing algorithm rather than a symmetric encryption algorithm. It is much slower than MD5 or SHA-1, but more secure. It take a file input and when decrypting, it can output to stdout

**********
$ date; bcrypt -c -s12 test.txt;date
Mon Aug 18 23:04:36 PDT 2014
Encryption key:Key must be at least 8 characters
Encryption key:
Again:
Mon Aug 18 23:04:47 PDT 2014

$ date; bcrypt -o test.txt.bfe;date
Mon Aug 18 23:05:38 PDT 2014
Encryption key:
this is a sample text
Mon Aug 18 23:05:41 PDT 2014

***********

No comments:

Post a Comment