@averox/cryptosphare
Version:
Real-time SDK for end-to-end encrypted messaging, key monitoring, and secure A/V streaming
27 lines (26 loc) • 764 B
TypeScript
export declare class Encryption {
private readonly ec;
private readonly SALT_LENGTH;
private readonly IV_LENGTH;
constructor();
private deriveKey;
encryptData(data: string, key: string): {
encrypted: string;
iv: string;
salt: string;
tag: string;
};
decryptData(encryptedData: {
encrypted: string;
iv: string;
salt: string;
tag: string;
}, key: string): string;
generateECDSAKeyPair(): {
publicKey: string;
privateKey: string;
};
signData(data: string, privateKey: string): string;
verifySignature(data: string, signature: string, publicKey: string): boolean;
quantumResistantEncrypt(data: string, publicKey: string): string;
}