>>> import bcrypt >>> s = 'hello' >>> hash = bcrypt.hashpw(s, bcrypt.gensalt()) >>> print hash $2a$12$1VwtpKmC77PkaoTol0HIS.Wqp24FUNHcB2OyPLPQBwVO.P3NVEwWq >>> hash2 = bcrypt.hashpw(s, hash) >>> hash == hash2 True #//python/7139