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

11 lines
349 B
TypeScript
Raw Normal View History

2022-02-14 16:15:32 +07:00
/// <reference types="node" />
2022-02-14 19:05:24 +07:00
import { CryptoProvider } from "./provider.crypto"
export declare class Crypto {
2022-02-14 16:15:32 +07:00
private readonly provider
2022-02-14 19:05:24 +07:00
constructor(provider: CryptoProvider)
2022-02-14 16:15:32 +07:00
encrypt(data: string | Buffer): string
decrypt(data: string): string
private static _instance
2022-02-14 19:05:24 +07:00
static newInstance(provider: CryptoProvider): Crypto
2022-02-14 16:15:32 +07:00
}