secure-encryption-lib
Version:
A TypeScript library for secure encryption using AES & RSA with automatic key rotation.
16 lines (15 loc) • 502 B
TypeScript
import { SecureEncryptionSdkConfig } from './TYPES';
export declare class SecureEncryption {
#private;
/**
* Creates an instance of SecureEncryption.
*
* @constructor
* @param [config]
*/
constructor(config?: SecureEncryptionSdkConfig);
encryptAES(text: string, secretKey: string): string;
decryptAES(encryptedText: string, secretKey: string): string;
encryptRSA(text: string): Promise<string>;
decryptRSA(encryptedText: string): Promise<string>;
}