#NEWLINE# def hash_password( plain_password ) : #NEWLINE# #INDENT# salt = _random_bytes ( 8 ) #NEWLINE# hashed_password = _pbkdf_sha256 ( plain_password , hashed_password ) #NEWLINE# return ( ( salt . encode ( 'base64' ) . strip ( ) + ',' ) + hashed_password . encode ( 'base64' ) . strip ( ) )