cubetiq-crypto-js/dist/crypto/provider/default.provider.d.ts
2022-02-14 19:05:24 +07:00

17 lines
546 B
TypeScript

/// <reference types="node" />
import { CryptoProvider } from "../provider.crypto"
interface DefaultCryptoProviderOptions {
key?: string | Buffer | null | undefined
iv?: string | Buffer | null | undefined
keyiVPath?: string | null | undefined
jsonPath?: string | null | undefined
}
export declare class DefaultCryptoProvider implements CryptoProvider {
private _key
private _iv
constructor(options: DefaultCryptoProviderOptions)
encrypt(data: string | Buffer): string
decrypt(data: string): string
}
export {}