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

dl-encryptor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dl-encryptor

A scalable TypeScript encryption utility supporting RSA, AES, ECC with auto key generation.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

🔐 dl-encryptor

A TypeScript encryption library supporting RSA, AES, and ECC with auto key generation, JSON support, and extensible design.

✅ Features

  • RSA-2048 (asymmetric)
  • AES-256-CBC (symmetric)
  • ECC (asymmetric placeholder)
  • Automatic key generation
  • JSON and string data encryption
  • Modular structure

📦 Install

npm install dl-encryptor

📄 Usage

import { encrypt, decrypt, EncryptionFormat } from "dl-encryptor";

const data = { user: "admin", password: "1234" };

// AES Encryption
const encrypted = encrypt(data, EncryptionFormat.AES_256);

// AES Decryption
const decrypted = decrypt(encrypted.encryptedData, EncryptionFormat.AES_256, encrypted.keysUsed);

console.log(encrypted);
console.log(decrypted); // { user: "admin", password: "1234" }

Keywords

encryption

FAQs

Package last updated on 16 Jun 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