#NEWLINE# def verify( password , encoded ) : #NEWLINE# #INDENT# 'verifies if encoded password correspond to plain password' #NEWLINE# if ( ( ver == '' ) or ( password == '' ) or ( encoded is None ) or ( password is None ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# encoded = encoded . replace ( CUSTOM_HEADER , PBKDF2SHA512_HEADER , 1 ) #NEWLINE# ver = pbkdf2_sha512 . verify ( password , encoded ) #NEWLINE# return ver