Socket
Book a DemoInstallSign in
Socket

@eternaljs/key-gen

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
Package was removed
Sorry, it seems this package was removed from the registry

@eternaljs/key-gen

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.

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Random Password Generator with AES Encryption and Decryption

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.

Installing

Using npm:

$ npm install @eternaljs/key-gen

Using yarn:

$ yarn add @eternaljs/key-gen

Usage

These examples assume you're in node, or something similar:

// JavaScript
const { randomPassword, encryptPassword, decryptPassword } = require("@eternaljs/key-gen");

// TypeScript
import { randomPassword, encryptPassword, decryptPassword } from "@eternaljs/key-craft"


const genPassword = randomPassword();
// 'Y*ZItwd%^^RO'

const encryptPass = encryptPassword(password, encryptionKey);
// 'U2FsdGVkX1/YRKUaSD60d/GO6ZB628LeAxHmkfCz+Zk='

const decryptPass = decryptPassword(encrypt, encryptionKey);
// 'Y*ZItwd%^^RO'

License

MIT

Keywords

password

FAQs

Package last updated on 19 Aug 2023

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