Interface Crypto
interface Crypto {
subtle: SubtleCrypto;
getRandomValues<T>(array: T): T;
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
subtle: SubtleCrypto;
getRandomValues<T>(array: T): T;
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
Index
Properties
Methods
Methods
getRandomValues
- get
Random <T>(array): TValues Type Parameters
- T extends ArrayBufferView
Parameters
- array: T
Returns T
Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
MDN Reference