Home
last modified time | relevance | path

Searched refs:urlsafe_b64encode (Results 1 – 21 of 21) sorted by relevance

/external/python/cryptography/tests/
Dtest_fernet.py86 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
88 f.decrypt(base64.urlsafe_b64encode(b"\x81"))
91 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
93 f.decrypt(base64.urlsafe_b64encode(b"\x80abc"))
96 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
101 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
108 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
123 Fernet(base64.urlsafe_b64encode(b"abc"), backend=backend)
126 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
145 f1 = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dbase64_ops_test.py65 base64_msg = [base64.urlsafe_b64encode(m) for m in msg]
109 enc = base64.urlsafe_b64encode(msg)
115 enc = base64.urlsafe_b64encode(msg)
128 enc = base64.urlsafe_b64encode(msg)
135 enc = base64.urlsafe_b64encode(msg)
146 enc = base64.urlsafe_b64encode(msg)
/external/python/cpython3/Lib/
Dsecrets.py72 return base64.urlsafe_b64encode(tok).rstrip(b'=').decode('ascii')
Dbase64.py111 def urlsafe_b64encode(s): function
/external/python/cryptography/src/cryptography/
Dfernet.py47 return base64.urlsafe_b64encode(os.urandom(32))
71 return base64.urlsafe_b64encode(basic_parts + hmac)
/external/python/oauth2client/oauth2client/
D_helpers.py98 return base64.urlsafe_b64encode(raw_bytes).rstrip(b'=')
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py61 token = base64.urlsafe_b64encode(digest + DELIMITER + when)
/external/python/cpython2/Lib/test/
Dtest_base64.py99 eq(base64.urlsafe_b64encode('\xd3V\xbeo\xf7\x1d'), '01a-b_cd')
101 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py74 expected_token = base64.urlsafe_b64encode(
109 expected_token = base64.urlsafe_b64encode(
/external/python/apitools/apitools/base/py/
Dbase_api_test.py271 'bytes_field': base64.urlsafe_b64encode(non_unicode_message),
287 'nextPageToken': base64.urlsafe_b64encode(non_unicode_message),
Dencoding_helper.py492 result = [base64.urlsafe_b64encode(byte) for byte in value]
494 result = base64.urlsafe_b64encode(value)
Dbase_api.py538 return base64.urlsafe_b64encode(value)
Dencoding_test.py304 safe_encoded_data = base64.urlsafe_b64encode(raw_data).decode("utf-8")
/external/autotest/site_utils/
Dgmail_lib.py93 return {'raw': base64.urlsafe_b64encode(message.as_string())}
/external/toolchain-utils/cros_utils/
Demail_sender.py132 entropy = base64.urlsafe_b64encode(os.getrandom(8))
/external/python/cpython2/Lib/
Dbase64.py101 def urlsafe_b64encode(s): function
/external/python/cpython3/Lib/test/
Dtest_base64.py169 eq(base64.urlsafe_b64encode(b'\xd3V\xbeo\xf7\x1d'), b'01a-b_cd')
171 self.check_other_types(base64.urlsafe_b64encode,
173 self.check_encode_type_errors(base64.urlsafe_b64encode)
/external/python/oauth2client/tests/
Dtest_client.py1491 payload = base64.urlsafe_b64encode(body_json).strip(b'=')
1624 payload = base64.urlsafe_b64encode(body_json).strip(b'=')
1633 payload = base64.urlsafe_b64encode(body_json).strip(b'=')
2050 payload = base64.urlsafe_b64encode(body_json).strip(b'=')
2051 jwt = (base64.urlsafe_b64encode(b'stuff') + b'.' + payload + b'.' +
2052 base64.urlsafe_b64encode(b'signature'))
/external/python/cpython2/Doc/library/
Dbase64.rst64 .. function:: urlsafe_b64encode(s)
/external/python/cryptography/docs/
Dfernet.rst204 >>> key = base64.urlsafe_b64encode(kdf.derive(password))
/external/python/cpython3/Doc/library/
Dbase64.rst94 .. function:: urlsafe_b64encode(s)