New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

encryption-algorithm-aes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encryption-algorithm-aes

Strong AES-GCM encryption/decryption with PBKDF2 key derivation in JavaScript (Node.js & browser).

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

ENCRYPTION ALGORITHM AES 🔐

  • A lightweight and secure AES-256-GCM encryption & decryption library with PBKDF2 key derivation.
  • Perfect for protecting sensitive data with password-based encryption.

INSTALLATION

npm install encryption-algorithm-aes

USEAGE

import { encrypt, decrypt } from "secure-encrypt";

const token = await encrypt("hello world", "my-password");
console.log("Encrypted:", token);

console.log(await decrypt(token, "my-password"));

FEATURES

  • 🔒 AES-256-GCM for strong encryption

  • 🔑 PBKDF2 key derivation with salt & iterations

  • 📦 Tiny & dependency-free

  • ⚡ Async functions for better performance

API

  •   encrypt(data: string, password: string): Promise<string>```
    

Encrypts a string with the given password. Returns a Base64-encoded token containing salt, IV, and ciphertext.

  •   decrypt(token: string, password: string): Promise<string>```
    

Decrypts a token with the given password. Returns the original plaintext string.

LICENCE

MIT © Akram Benaoun

Keywords

encryption

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts