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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ravoni4devs/libcryptus

v1.0.0

Published

A lightweight and efficient library providing essential cryptographic utilities

Readme

Cryptus

Cryptus is a multi-language cryptography and hashing library designed to provide a simple and consistent interface for developers working with cryptographic operations across different programming languages.

Features

  • Encryption & Decryption: Simplify data protection with straightforward functions.
  • Key Derivation & Generation: Generate strong keys with Argon2 and PBKDF2.
  • Hashing & Secure Storage: Hash passwords and securely store sensitive data.
  • Modular Design: Use only what you need to keep your project lean.

Supported Algorithms

Cryptus currently supports the following cryptographic algorithms:

  • RSA – Asymmetric encryption and key generation
  • Argon2 – Memory-hard password hashing (Argon2id)
  • PBKDF2 – Password-based key derivation
  • AES – Symmetric encryption (AES-256)
  • Sha256 – Cryptographic hash function producing 256-bit fixed-size output

Installation

To install Cryptus, run:

npm i @ravoni4devs/libcryptus

To add Argon2 support:

npm i argon2-browser

# Then add this script to your HTML
<script src="node_modules/argon2-browser/dist/argon2-bundled.js"></script>

Usage

ES6 module

Here’s a simple AES encryption example:

import Cryptus from '@ravoni4devs/libcryptus'

const plainText = 'strongpass';
const cryptus = new Cryptus();
const passwordHex = await cryptus.pbkdf2({
  plainText: plainText,
  salt: '123456',
  length: 128
})
console.log(passwordHex)  // 1498cccb3cab5e895d6912d78aef6ab2

const nonceHex = helpers.strToHex('12345678');
console.log(nonceHex)    // 3132333435363738

const cipherText = await cryptus.encryptAes({plainText, nonceHex, passwordHex});
console.log(cipherText)  // fd1ceaa8d7f03be768d410f07c017f3f7e62c8af6c9061cbaa0d

const decryptedText = await cryptus.decryptAes({cipherText, nonceHex, passwordHex});
console.log(decryptedText)

Common JS old fashion style

<!DOCTYPE html>
<html lang="en">
<head>
  <script src="node_modules/@ravoni4devs/libcryptus/dist/libcryptus-cjs.js"></script>
</head>
<body>
  <div>Generated Nonce: <span id="nonce"></span></div>
  <script>
    var cryptus = new Cryptus();
    var nonce = cryptus.generateNonce({ length: 16, hex: true });
    document.querySelector('#nonce').innerHTML = nonce;
  </script>
</body>

Documentation

More examples in *.test.js files.

Contributing

  1. Open an issue and describe your pain
  2. Fork the repo
  3. Create a new branch: git checkout -b feature/my-feature
  4. Commit your changes
  5. Push and open a PR

Please follow the project’s coding style and include tests when possible.

License

MIT License. See the LICENSE file for details.