2022-02-14 16:15:32 +07:00
|
|
|
/// <reference types="node" />
|
2022-02-14 19:05:24 +07:00
|
|
|
import { CryptoProvider } from "../provider.crypto"
|
2022-02-14 16:15:32 +07:00
|
|
|
interface DefaultCryptoProviderOptions {
|
|
|
|
key?: string | Buffer | null | undefined
|
|
|
|
iv?: string | Buffer | null | undefined
|
|
|
|
keyiVPath?: string | null | undefined
|
|
|
|
jsonPath?: string | null | undefined
|
|
|
|
}
|
2022-02-14 19:05:24 +07:00
|
|
|
export declare class DefaultCryptoProvider implements CryptoProvider {
|
2022-02-14 16:15:32 +07:00
|
|
|
private _key
|
|
|
|
private _iv
|
|
|
|
constructor(options: DefaultCryptoProviderOptions)
|
|
|
|
encrypt(data: string | Buffer): string
|
|
|
|
decrypt(data: string): string
|
|
|
|
}
|
|
|
|
export {}
|