def verify_password(s1, s2):
 if isinstance(s1, unicode):
  s1 = s1.encode('utf-8')
 if isinstance(s2, unicode):
  s2 = s2.encode('utf-8')
 (m, f, n, x, s2) = s2.split(':')
 return streql(pbkdf2(s1[:1024], x, int(n), (len(s2) / 2), f), s2)

def verify_password ( s1 , s2 ) : if isinstance ( s1 , unicode ) : s1 = s1 . encode ( 'utf-8' ) if isinstance ( s2 , unicode ) : s2 = s2 . encode ( 'utf-8' ) ( m , f , n , x , s2 ) = s2 . split ( ':' ) return streql ( pbkdf2 ( s1 [ : 1024 ] , x , int ( n ) , ( len ( s2 ) / 2 ) , f ) , s2 )
returns true if the given strings are identical .