UNPKG

cross-crypto-ts

Version:

Cifrado híbrido seguro con interoperabilidad entre lenguajes como Python, TypeScript y Rust, basado en AES-GCM (256 bits) y RSA-OAEP (4096 bits).

26 lines 620 B
export type EncryptedPayload = JsonEncrypted | StreamEncrypted; export interface RSAKeyPair { publicKey: string; privateKey: string; } export type JsonEncrypted = { encryptedKey: string; encryptedData: string; nonce: string; tag: string; mode: 'json' | 'binary' | 'v8'; }; export type StreamEncrypted = { encryptedKey: string; nonce: string; tag: string; encryptedPath: string; mode: 'stream'; }; export type EncryptFileOptions = { outputEnc?: string; zipOutput?: string; attachMetadata?: boolean; saveFile?: boolean; }; //# sourceMappingURL=types.d.ts.map