cubetiq-crypto-js/dist/crypto/core/default.crypto.d.ts
2022-02-14 16:56:44 +07:00

15 lines
487 B
TypeScript

/// <reference types="node" />
declare const encrypt: (
data: string | Buffer,
key: string | Buffer,
iv?: string | Buffer | null | undefined
) => string
declare const decrypt: (
data: string | Buffer,
key: string | Buffer,
iv?: string | Buffer | null | undefined
) => string
declare const cryptoRandomBytes: (length: number) => Buffer
declare const cryptoRandomString: (length: number) => string
export { encrypt, decrypt, cryptoRandomBytes, cryptoRandomString }