UNPKG

@datadayrepos/libsodium-wrapper

Version:

Typescript for accessing the libsodium.js for a small subset of functionalities.

14 lines (13 loc) 694 B
export { crypto_box_keypair, crypto_box_seal, crypto_box_seal_open, crypto_pwhash, crypto_pwhash_ALG_ARGON2ID13, crypto_pwhash_MEMLIMIT_INTERACTIVE, crypto_pwhash_OPSLIMIT_INTERACTIVE, crypto_sign_detached, crypto_sign_keypair, from_base64, ready as sodiumReady, to_base64, } from 'libsodium-wrappers'; export type { KeyPair, StringOutputFormat, Uint8ArrayOutputFormat, } from 'libsodium-wrappers'; export type JWKSKey = { kty: string; crv: string; x: string; d?: string; alg: string; use: string; kid: string; }; export declare function base64UrlEncode(input: ArrayBuffer | Uint8Array): string; export declare function base64UrlToBase64(base64url: string): string;