elearning/Frontend-Learner/node_modules/uncrypto/dist/crypto.web.mjs

16 lines
348 B
JavaScript
Raw Normal View History

2026-01-13 10:46:40 +07:00
const webCrypto = globalThis.crypto;
const subtle = webCrypto.subtle;
const randomUUID = () => {
return webCrypto.randomUUID();
};
const getRandomValues = (array) => {
return webCrypto.getRandomValues(array);
};
const _crypto = {
randomUUID,
getRandomValues,
subtle
};
export { _crypto as default, getRandomValues, randomUUID, subtle };