Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
URL safe Base64 decode without padding (=)

        def urlsafe_nopadding_b64decode(data):
    '''URL safe Base64 decode without padding (=)'''

    padding = len(data) % 4
    if padding != 0:
        padding = 4 - padding
    padding = '=' * padding
    data = data + padding
    return urlsafe_b64decode(data)
        


src/e/n/EncryptedPickle-0.1.4/encryptedpickle/encryptedpickle.py   EncryptedPickle(Download)
from Crypto.Hash import HMAC, SHA, SHA256, SHA384, SHA512
 
from .utils import (
    const_equal,
    urlsafe_nopadding_b64encode,
    def unseal(self, data, return_options=False):
        '''Unseal data'''
 
        data = self._remove_magic(data)
        data = urlsafe_nopadding_b64decode(data)
    def verify_signature(self, data):
        '''Verify sealed data signature'''
 
        data = self._remove_magic(data)
        data = urlsafe_nopadding_b64decode(data)
    def get_data_options(self, data, verify_signature=True):
        '''Get sealed data options'''
 
        data = self._remove_magic(data)
        data = urlsafe_nopadding_b64decode(data)