Interface SymmetricEncryptionInterface
interface SymmetricEncryptionInterface { decrypt( message: string, key: CryptographyKey, assocData?: string, ): Promise<string | Uint8Array<ArrayBufferLike>>; encrypt( message: string | Uint8Array<ArrayBufferLike>, key: CryptographyKey, assocData?: string, ): Promise<string>;} Methods
decrypt
decrypt( message: string, key: CryptographyKey, assocData?: string,): Promise<string | Uint8Array<ArrayBufferLike>> Returns Promise<string | Uint8Array<ArrayBufferLike>>
encrypt
encrypt( message: string | Uint8Array<ArrayBufferLike>, key: CryptographyKey, assocData?: string,): Promise<string> Parameters
- message: string | Uint8Array<ArrayBufferLike>
- key: CryptographyKey
Optional
assocData: string
Returns Promise<string>
Interface for symmetric encryption classes supported by this library.