UNPKG

@bitblit/ratchet-common

Version:

Common tools for general use

13 lines (12 loc) 411 B
export declare class SimpleEncryptionRatchet { private urlSafe; private ivLength; private sharedKey; constructor(sharedRawKey: string | Promise<string>, urlSafe?: boolean, ivLength?: number); private strToBuf; private bufToBase64; private base64ToBuf; encrypt(data: string): Promise<string>; decrypt(encryptedValueIn: string): Promise<string>; private createSharedKey; }