Add build and allow dist

This commit is contained in:
2022-02-14 16:15:32 +07:00
parent 3d8f9c5d78
commit 3c12c69606
39 changed files with 11173 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
/// <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 {}