generated from cubetiq/ts-project
15 lines
487 B
TypeScript
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 }
|