UNPKG

@logismika/crypto

Version:
7 lines (6 loc) 254 B
import { Options } from "./options"; export interface EncryptedData { readonly length: number; readonly bytes: Uint8Array; } export declare const encrypt: (key: string | Uint8Array, data: Uint8Array, options?: Options) => Promise<EncryptedData>;