def crypt_generic_passwd(password, salt, uppercase=False):
 retVal = crypt(password, salt)
 return (retVal.upper() if uppercase else retVal)

def crypt_generic_passwd ( password , salt , uppercase = False ) : retVal = crypt ( password , salt ) return ( retVal . upper ( ) if uppercase else retVal )
reference(s): URL URL URL URL .