sera/utils.py
def decrypt(msg, sender_key, private_key='', encoding='utf-8'):
    """Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY"""
    private_key = private_key or getenv('SERA_CLIENT_PRIVATE_KEY')
    skey = PrivateKey(private_key, URLSafeBase64Encoder)
    pkey = PublicKey(sender_key, URLSafeBase64Encoder)
    box = Box(skey, pkey)
    return box.decrypt(msg).decode('utf-8')
Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY
Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY
Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY
def decrypt(msg, sender_key, private_key='', encoding='utf-8'):
    private_key = private_key or getenv('SERA_CLIENT_PRIVATE_KEY')
    skey = PrivateKey(private_key, URLSafeBase64Encoder)
    pkey = PublicKey(sender_key, URLSafeBase64Encoder)
    box = Box(skey, pkey)
    return box.decrypt(msg).decode('utf-8')
def decrypt ( msg , sender_key , private_key = '' , encoding = 'utf-8' ) : private_key = private_key or getenv ( 'SERA_CLIENT_PRIVATE_KEY' ) skey = PrivateKey ( private_key , URLSafeBase64Encoder ) pkey = PublicKey ( sender_key , URLSafeBase64Encoder ) box = Box ( skey , pkey ) return box . decrypt ( msg ) . decode ( 'utf-8' )
Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY
Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY
"""Decrypt a message with the given private key or SERA_CLIENT_PRIVATE_KEY"""
msg
sender_key
private_key
encoding