Permalink
Browse files

fix for issue/#3

  • Loading branch information...
peterbe committed Mar 23, 2012
1 parent 35cbf84 commit e432b122dcdd9ff9723067c2aa23e50db35d4409
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado_utils/utils.py
View
@@ -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 e432b12

Please sign in to comment.