def processor_hash(value):
 shared_secret = get_processor_config().get('SHARED_SECRET', '')
 hash_obj = hmac.new(shared_secret.encode('utf-8'), value.encode('utf-8'), sha1)
 return binascii.b2a_base64(hash_obj.digest())[:(-1)]

def processor_hash ( value ) : shared_secret = get_processor_config ( ) . get ( 'SHARED_SECRET' , '' ) hash_obj = hmac . new ( shared_secret . encode ( 'utf-8' ) , value . encode ( 'utf-8' ) , sha1 ) return binascii . b2a_base64 ( hash_obj . digest ( ) ) [ : ( - 1 ) ]
performs the base64(hmac_sha1) used by cybersource hosted order page .