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

x/eas_deno/services/rsa-service.ts>RsaService

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 RsaService
import { RsaService } from "https://deno.land/x/eas_deno@v1.1.5/services/rsa-service.ts";

Methods

decryptWithoutKey(
token: string,
publicKey: string,
encryptedData: string,
): Promise<RsaDecryptWithoutPrivateKeyResponse>
decryptWithPrivateKey(
token: string,
privateKey: string,
dataToDecrypt: string,
): Promise<RsaDecryptResponse>
encryptWithoutKey(
token: string,
dataToEncrypt: string,
keySize: number,
): Promise<RsaEncryptWithoutKeyResponse>
encryptWithPublicKey(
token: string,
publicKey: string,
dataToEncrypt: string,
): Promise<RsaEncryptWithPublicResponse>
getRsaKeys(token: string, keySize: number): Promise<RsaGetKeyPairResponse>
signWithKey(
token: string,
privateKey: string,
dataToSign: string,
): Promise<RsaSignWithKeyResponse>
signWithoutKey(
token: string,
dataToSign: string,
keySize: number,
): Promise<RsaSignWithoutKeyResponse>
verify(
token: string,
publicKey: string,
signature: string,
originalData: string,
): Promise<RsaVerifyResponse>