expo-crypto-universal-web
Version:
Web implementation of expo-crypto-universal
21 lines (20 loc) • 715 B
JavaScript
var s = Object.defineProperty;
var a = (o, e, t) => e in o ? s(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
var r = (o, e, t) => a(o, typeof e != "symbol" ? e + "" : e, t);
import { AbstractCryptoModule as d } from "expo-crypto-universal";
class l extends d {
constructor() {
super(...arguments);
/**
* Fills the provided Uint8Array with cryptographically strong random values.
* @param array - The Uint8Array to fill with random values.
* @returns The same Uint8Array, filled with random values.
*/
r(this, "getRandomValues", (t) => crypto.getRandomValues(t));
}
}
const u = new l();
export {
l as WebCryptoModule,
u as webCryptoModule
};