Files
skills-here-run-place/node_modules/uncrypto/dist/crypto.node.mjs
Alejandro Martinez f09af719cf Initial commit
2026-02-12 02:04:10 +01:00

17 lines
380 B
JavaScript

import nodeCrypto from 'node:crypto';
const subtle = nodeCrypto.webcrypto?.subtle || {};
const randomUUID = () => {
return nodeCrypto.randomUUID();
};
const getRandomValues = (array) => {
return nodeCrypto.webcrypto.getRandomValues(array);
};
const _crypto = {
randomUUID,
getRandomValues,
subtle
};
export { _crypto as default, getRandomValues, randomUUID, subtle };