secure-encryption-lib
Version:
A TypeScript library for secure encryption using AES & RSA with automatic key rotation.
33 lines (32 loc) • 894 B
TypeScript
import { SecureEncryptionConfig, SecureEncryptionSdkConfig } from './TYPES';
import { RedisSdkConfig } from '@am92/redis';
export declare class RSAKeyManager {
#private;
/**
* Redis Configurations used by the RSAKeyManager instance
*/
REDIS_CONFIG: RedisSdkConfig;
/**
* SECURE ENCRYPTION Configurations used by the RSAKeyManager instance
*/
SECURE_ENCRYPTION_CONFIG: SecureEncryptionConfig;
/**
* Creates an instance of RSAKeyManager.
*
* @constructor
* @param [config]
*/
constructor(config?: SecureEncryptionSdkConfig);
/**
* Initialize the RSAKeyManager instance. It internally creates a Redis connection
*
* @async
* @returns
*/
initialize(): Promise<void>;
generateKeys(): Promise<void>;
getKeys(): Promise<{
publicKey: string;
privateKey: string;
}>;
}