Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/eas_deno/services/symmetric-encryption-service.ts>SymmetricEncryptionService

eas-deno is a TypeScript SDK that authenticates with the main EAS API through tokenization. Giving you the performance of Rust without having to learn FFI in Rust.
Latest
class SymmetricEncryptionService
import { SymmetricEncryptionService } from "https://deno.land/x/eas_deno@v1.1.5/services/symmetric-encryption-service.ts";

Constructors

new
SymmetricEncryptionService()

Properties

nonceGenerator: NonceGenerator

Methods

aes128Decrypt(
token: string,
dataToDecrypt: string,
key: string,
nonce: string,
): Promise<Aes128DecryptResponse>
aes128Encrypt(token: string, dataToEncrypt: string): Promise<Aes128EncryptResponse>
aes256Decrypt(
token: string,
dataToDecrypt: string,
key: string,
nonce: string,
): Promise<Aes256DecryptResponse>
aes256Encrypt(token: string, dataToEncrypt: string): Promise<Aes256EncryptResponse>
blake2Hash(
token: string,
hashSize: number,
toHash: string,
): Promise<Blake2HashResponse>
blake2Verify(
token: string,
hashSize: number,
dataToVerify: string,
hash: string,
): Promise<Blake2VerifyResponse>
md5Hash(token: string, dataToHash: string): Promise<MD5HashResponse>
md5Verify(
token: string,
hashToVerify: string,
toHash: string,
): Promise<MD5VerifyResponse>