Permalink
Browse files

Merge branch 'master' of git://github.com/peterbe/tornado-utils

* 'master' of git://github.com/peterbe/tornado-utils:
  fix for issue/#3
  • Loading branch information...
2 parents ba38ad5 + 6c2206b commit a9a86d91f710c2756809e9df9deaa6122aa9483e @ifduyue ifduyue committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado_utils/utils.py
@@ -43,7 +43,7 @@ def encrypt_password(raw_password, log_rounds=10):
salt = bcrypt.gensalt(log_rounds=log_rounds)
hsh = bcrypt.hashpw(raw_password, salt)
algo = 'bcrypt'
- return u'%s$bcrypt$%s' % (algo, hsh)
+ return u'%s$%s$%s' % (salt, algo, hsh)
def niceboolean(value):

0 comments on commit a9a86d9

Please sign in to comment.