#NEWLINE# def _pbkdf_sha256( password , salt , iterations = NUM_ITERATIONS ) : #NEWLINE# #INDENT# result = password . encode ( 'utf-8' ) #NEWLINE# for i in xrange ( iterations ) : #NEWLINE# #INDENT# result = HMAC ( result , salt , sha256 ) . digest ( ) #NEWLINE# #UNINDENT# return result