
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@eternaljs/password-generator
Advanced tools
A random password generator helps create strong passwords to enhance security, while AES encryption is a robust algorithm used to secure data by transforming it into ciphertext, rendering it unreadable without the appropriate decryption key.
Random Password Generator helps create strong passwords to enhance security, while AES encryption is a robust algorithm used to secure data by transforming it into ciphertext, rendering it unreadable without the appropriate decryption key.
Using npm:
$ npm install @eternaljs/password-generator
Using yarn:
$ yarn add @eternaljs/password-generator
These examples assume you're in node, or something similar:
// JavaScript
const {
generateRandomPassword,
generateSecretAndSalt,
encryptPassword,
decryptPassword,
} = require("@eternaljs/password-generator");
// TypeScript
import {
generateRandomPassword,
generateSecretAndSalt,
encryptPassword,
decryptPassword,
} from "@eternaljs/password-generator";
// Generate Random password
const genPassword = generateRandomPassword();
// rwB5TxBTaRSa
// Generate Random Secret and salt
const { secret, salt } = generateSecretAndSalt();
// e2d9252464600187c7d12fdcd048d4ad
// dc6e22
const PASSWORD = "Testing@123";
const SECRET_KEY = "u6wq45p2gdk0b1mk5tz3uv8dg7uo9mlv";
const SECRET_SALT = "2CGF8G";
// Encrypt a password by using Node Crypto CBC with secret key and salt
const encryptPass = encryptPassword(SECRET_KEY, SECRET_SALT, PASSWORD);
// Uxw2Gn+bteN3oQEkWU6JgQ==
// Decrypt a password by using Node Crypto CBC with secret key and salt
const decryptPass = decryptPassword(SECRET_KEY, SECRET_SALT, encryptPass);
// Testing@123
MIT
FAQs
A random password generator helps create strong passwords to enhance security, while AES encryption is a robust algorithm used to secure data by transforming it into ciphertext, rendering it unreadable without the appropriate decryption key.
We found that @eternaljs/password-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.