Skip to main content
The Deno 2 Release Candidate is here
Learn more
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.
Go to Latest
class SymmetricEncryptionService
import { SymmetricEncryptionService } from "https://deno.land/x/eas_deno@v0.0.7/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>
md5Hash(token: string, dataToHash: string): Promise<MD5HashResponse>
md5Verify(
token: string,
hashToVerify: string,
toHash: string,
): Promise<MD5VerifyResponse>