UNPKG

@bolttech/server-side-next

Version:

This library was generated with [Nx](https://nx.dev).

7 lines (6 loc) 350 B
/// <reference types="node" /> import { KeyLike, RsaPrivateKey, RsaPublicKey } from 'crypto'; export interface BolttechCryptoServiceInterface { encryptStringWithRsaPublicKey(toEncrypt: unknown, publicKey: RsaPublicKey | KeyLike): string; decryptStringWithRsaPrivateKey(toDecrypt: string, privateKey: RsaPrivateKey | KeyLike): string; }