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

17 lines
548 B
TypeScript

/// <reference types="node" />
import { ICryptoProvider } 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 ICryptoProvider {
private _key
private _iv
constructor(options: DefaultCryptoProviderOptions)
encrypt(data: string | Buffer): string
decrypt(data: string): string
}
export {}