@tigthor/kokocrypt
Version:
Enhanced Fortress Edition - Secure, quantum-resistant, high-performance encryption package
17 lines (16 loc) • 615 B
TypeScript
export declare class BrowserCryptoService {
constructor();
ready(): Promise<void>;
generateKeys(): Promise<{
publicKey: string;
privateKey: string;
}>;
encryptMessage(message: string, receiverPublicKey: string, senderPrivateKey: string): Promise<string>;
decryptMessage(encryptedMessage: string, senderPublicKey: string, receiverPrivateKey: string): Promise<string>;
serverHandshake(serverPublicKey: string): Promise<{
clientPublicKey: string;
clientPrivateKey: string;
encryptedSessionData: string;
}>;
}
export default BrowserCryptoService;