UNPKG

@akanass/nestjsx-crypto

Version:

NestJS crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more

11 lines (10 loc) 438 B
/// <reference types="node-rsa" /> import { Data, Encoding, Format, Key, KeyBits, NodeRSA, Options } from '@akanass/rx-crypto'; import { Observable } from 'rxjs'; export declare class RsaService { private _rsa; constructor(); createKey(keyBits?: KeyBits): Observable<NodeRSA>; loadKey(key: Key, format?: Format, options?: Options): Observable<NodeRSA>; } export { NodeRSA, KeyBits, Key, Format, Options, Encoding, Data };