polyv-live-cli
Version:
CLI tool for managing PolyV live streaming services.
17 lines • 646 B
TypeScript
import { EncryptionMetadata } from '../types/account.types';
export declare class AccountCrypto {
private masterKey;
constructor(masterKey?: string);
private deriveKey;
encrypt(plaintext: string): {
encrypted: string;
metadata: EncryptionMetadata;
};
decrypt(encrypted: string, metadata: EncryptionMetadata): string;
encryptSimple(plaintext: string): string;
decryptSimple(encryptedData: string): string;
validateEncryptedData(encryptedData: string): boolean;
static generateMasterKey(): string;
testEncryption(testData?: string): boolean;
}
//# sourceMappingURL=account-crypto.d.ts.map