generated from cubetiq/ts-project
11 lines
349 B
TypeScript
11 lines
349 B
TypeScript
/// <reference types="node" />
|
|
import { CryptoProvider } from "./provider.crypto"
|
|
export declare class Crypto {
|
|
private readonly provider
|
|
constructor(provider: CryptoProvider)
|
|
encrypt(data: string | Buffer): string
|
|
decrypt(data: string): string
|
|
private static _instance
|
|
static newInstance(provider: CryptoProvider): Crypto
|
|
}
|