JavaScript's globalThis.crypto: subtle is None where
there is none (as in a browser's insecure context).
Attributes#
| Attribute | Type | Description |
|---|---|---|
subtle | SubtleCrypto | None |
Functions#
get_random_values#
get_random_values(array) -> memoryviewFill array with secure random bytes and return it. At most
65,536 bytes per call, as in Web Crypto.
| Parameter | Type | Description |
|---|---|---|
array | memoryview |
Returns memoryview
def get_random_values(self, array: memoryview, /) -> memoryview:
"""Fill ``array`` with secure random bytes and return it. At most
65,536 bytes per call, as in Web Crypto."""
...