UNPKG

@openpgp/tweetnacl

Version:

Port of TweetNaCl cryptographic library to JavaScript

4 lines (3 loc) 176 B
// declare const globalThis: Record<string, any> | undefined; export const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;