Skip to content

Initial release of cipher-utility library

Latest
Compare
Choose a tag to compare
@liorcodev liorcodev released this 05 Jun 21:22

Added

  • Initial release of cipher-utility library
  • Cipher class for secure encryption and decryption using AES-GCM
  • Support for AES-256-GCM, AES-192-GCM, and AES-128-GCM algorithms
  • Scrypt key derivation with configurable parameters (N, r, p)
  • Random salt and IV generation for each encryption operation
  • Additional Authenticated Data (AAD) support
  • Secure memory cleanup to prevent key material leakage
  • Support for base64 and hex encodings
  • Comprehensive TypeScript type definitions
  • Complete test suite with 100+ test cases
  • MIT license
  • Full documentation and examples

Security Features

  • AES-GCM encryption providing both confidentiality and authenticity
  • Scrypt key derivation for protection against brute-force attacks
  • Cryptographically secure random number generation for salts and IVs
  • Authentication tag verification to detect tampering
  • Secure buffer zeroing to prevent memory leakage