@akanass/rx-crypto
Version:
Crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more
9 lines (8 loc) • 377 B
TypeScript
import * as NodeRSA from 'node-rsa';
import { Data, Encoding, Format, Key, KeyBits, Options } from 'node-rsa';
import { Observable } from 'rxjs';
export declare class RSA {
createKey(keyBits?: KeyBits): Observable<NodeRSA>;
loadKey(key: Key, format?: Format, options?: Options): Observable<NodeRSA>;
}
export { NodeRSA, KeyBits, Key, Format, Options, Encoding, Data };