npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ezcryption

v1.0.4

Published

An encryption/decryption library.

Readme

A text encryption library that has two functions currently:

  1. Easy encryption (makes letter "a" to letter "f".)
  2. Encryption with a password(AES) (Requires node.js version 15.0.0 and up.)

Installation

npm install ezcryption

Usage

Easy encryption

import Spoiler from "ezcryption/dist/spoiler";

Spoiler.encrypt("This is a secret message"); // Ymnx%25nx%25f%25xjhwjy%25rjxxflj
Spoiler.decrypt("Ymnx%25nx%25f%25xjhwjy%25rjxxflj"); // This is a secret message

Encryption with a password(AES)

Returns a promise.

import Aes from "ezcryption/dist/aes";

async function myFunction() {
  const encrypted = await Aes.encrypt("This is a secret message", "password");
  // 163e231e179e74e123e207e37e34e112e154e33e98e82e216e36e56e211e181e173e232e238e10e81e134e207e99e68e193e98e215e248e166

  const decrypted = Aes.decrypt(
    "163e231e179e74e123e207e37e34e112e154e33e98e82e216e36e56e211e181e173e232e238e10e81e134e207e99e68e193e98e215e248e166",
    "password"
  ); // This is a secret message
}

Optional

These options are not required but for more flexibility.

Encryption with a password(AES) options:

Add an object as a third parameter {options:{iv: customIv, salt: customSalt}}

  • iv: Initialization vector for Aes. An array that contains 16 integer between 0 to 255 value range
  • salt: A string for PBKDF2(key derivation function)

Example:

import Aes from "ezcryption/dist/aes";

const customIv = new Uint8Array([
  4, 214, 15, 14, 139, 254, 2, 1, 28, 19, 204, 14, 15, 0, 5, 6,
]);
const customSalt = "custom salt";

async function myFunction() {
  const encrypted = await Aes.encrypt("This is a secret message", "password", {
    options: { iv: customIv, salt: customSalt },
  }); // 78e173e11e207e148e208e76e35e47e68e75e19e93e55e76e57e111e136e150e77e44e89e69e104e110e131e196e154e32e22e39e220

  const decrypted = await Aes.decrypt(
    "78e173e11e207e148e208e76e35e47e68e75e19e93e55e76e57e111e136e150e77e44e89e69e104e110e131e196e154e32e22e39e220",
    "password",
    {
      options: { iv: customIv, salt: customSalt },
    }
  ); // This is a secret message
}