@meeco/cryppo
Version:
In-browser encryption and decryption. Clone of Ruby Cryppo
20 lines • 835 B
TypeScript
import { EncodingVersions } from '../encoding-versions.js';
import { EncryptionKey } from '../encryption-key.js';
import { CipherStrategy } from '../strategies.js';
interface IEncryptionOptions {
iv: string;
at: string;
ad: string;
}
export declare function decryptWithKeyDerivedFromString({ serialized, passphrase, encodingVersion, }: {
serialized: string;
passphrase: string;
encodingVersion?: EncodingVersions;
}): Promise<Uint8Array | null>;
export declare function decryptWithKey({ serialized, key, }: {
serialized: string;
key: EncryptionKey;
}): Promise<Uint8Array | null>;
export declare function decryptWithKeyUsingArtefacts(key: EncryptionKey, encryptedData: any, strategy: CipherStrategy, { iv, at, ad }: IEncryptionOptions): Buffer | null;
export {};
//# sourceMappingURL=decryption.d.ts.map