def ohdave_rsa_encrypt(data, exponent, modulus):
 payload = int(binascii.hexlify(data[::(-1)]), 16)
 encrypted = pow(payload, exponent, modulus)
 return (u'%x' % encrypted)

def ohdave_rsa_encrypt ( data , exponent , modulus ) : payload = int ( binascii . hexlify ( data [ : : ( - 1 ) ] ) , 16 ) encrypted = pow ( payload , exponent , modulus ) return ( u'%x' % encrypted )
implement ohdaves rsa algorithm .