cubetiq-crypto-js/dist/crypto/core/default.crypto.d.ts

15 lines
487 B
TypeScript
Raw Normal View History

2022-02-14 16:15:32 +07:00
/// <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
2022-02-14 16:56:44 +07:00
declare const cryptoRandomBytes: (length: number) => Buffer
declare const cryptoRandomString: (length: number) => string
export { encrypt, decrypt, cryptoRandomBytes, cryptoRandomString }