UNPKG

@bolttech/server-side-next

Version:

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

9 lines (8 loc) 525 B
/// <reference types="node" /> import { BolttechCryptoServiceInterface } from '../bolttech-crypto'; import { KeyLike, RsaPrivateKey, RsaPublicKey } from 'crypto'; export declare class BolttechCryptoService implements BolttechCryptoServiceInterface { encryptStringWithRsaPublicKey(toEncrypt: unknown, publicKey: RsaPublicKey | KeyLike): string; decryptStringWithRsaPrivateKey(toDecrypt: string, privateKey: RsaPrivateKey | KeyLike): string; } export declare const bolttechCryptoService: BolttechCryptoService;