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 🙏

© 2024 – Pkg Stats / Ryan Hefner

deliumjs

v1.1.0

Published

🔑 Encryption method based on deleting

Downloads

14

Readme

License Version

Delium

🔑 This method is very simple but provides a high level of security in terms of safety.

This method, inspired by the film Oppenheimer, is derived from the concept of an atomic explosion. It works by visualizing a string, encoded using the SHA-256 or SHA-512 method, as a specific number of atoms placed together. In an atomic explosion, almost all atoms are destroyed, but our goal is to mathematically make the reverse engineering probability almost zero. Therefore, we remove several specific character sequences from the strings and then re-encode the resulting string using the SHA-256 or SHA-512 method.

Methods

Delium has two method for encryption, 1-Simple delium 2-Complex delium. In simple delium input string will hash with sha-256/sha-512 and in every cycle of hashing will delete specific chars from hashid string. But in complex delium, we have a path for adding and deleting for every cycle.

Functions

Simple delium

D256

Processes a string data by first hashing it with SHA-256, then repeatedly deleting characters from the resulting hash string at specified intervals, and finally hashing the modified string again with SHA-256.

Parameters:

  • strData: A string representing the data to be processed and hashed.
  • deleteStep: An integer specifying the interval at which characters will be deleted from the hash string.
  • repeat: An integer specifying how many times the deletion process should be applied.

Returns:

  • A pointer to a D_hash struct containing:
    • Buffer: A buffer of the final SHA-256 hash after applying the deletion process the specified number of times.
    • String: A hexadecimal string representation of the final SHA-256 hash.

D512

Processes a string data by first hashing it with SHA-512, then repeatedly deleting characters from the resulting hash string at specified intervals, and finally hashing the modified string again with SHA-512.

Parameters:

  • strData: A string representing the data to be processed and hashed.
  • deleteStep: An integer specifying the interval at which characters will be deleted from the hash string.
  • repeat: An integer specifying how many times the deletion process should be applied.

Returns:

  • A pointer to a D_hash struct containing:
    • Buffer: A buffer of the final SHA-512 hash after applying the deletion process the specified number of times.
    • String: A hexadecimal string representation of the final SHA-512 hash.

Complex delium

Processes a string data by first hashing it with SHA-256, then add strings based on path to the end of hashed string and delete chars based on path. Path can has NOT any addon string but must has at least the deleting chars number.

Path example: "2h4usk#5/73uytg#9/#4"

In this path we use delium 3 times. First we use delium with adding 2h4usk to end of hashing and deleting chars based on 5 intervals. Then we add 73uytg to end of new hash and delete every chars based on 9 intervals. At least we DONT add any string but we do simple delium just once with 4 delete step. ⚠️⚠️⚠️ PATH STRING NOT HAS ANY SPACE ⚠️⚠️⚠️

D256C

Parameters:

  • strData: A string representing the data to be processed and hashed.
  • path: A string representing the path of complex delium.

Returns:

  • A pointer to a D_hash struct containing:
    • Byte_slice: A byte slice of the final SHA-256 hash after applying the complex delium.
    • String: A hexadecimal string representation of the final SHA-256 hash.

D512C

Parameters:

  • strData: A string representing the data to be processed and hashed.
  • path: A string representing the path of complex delium.

Returns:

  • A pointer to a D_hash struct containing:
    • Byte_slice: A byte slice of the final SHA-512 hash after applying the complex delium.
    • String: A hexadecimal string representation of the final SHA-512 hash.

Installation

npm i deliumjs

Import

import { D256 } from "deliumjs";

Usage example

import { D256 , D256C } from "deliumjs";

...

// Simple delium
const simpleDelium = D256("example mnemonic", 3, 5)
console.log("buffer:", simpleDelium.Buffer)  // prints the buffer of the simple delium hash
console.log("Hex String:", simpleDelium.String)      // prints the hexadecimal string of the simple delium hash

// Complex delium
const path = "2h4usk#5/73uytg#9/#4"
const complexDelium = D256C("example mnemonic", path)
console.log("buffer:", complexDelium.Buffer)  // prints the buffer of the complex delium hash
console.log("Hex String:", complexDelium.String)      // prints the hexadecimal string of the complex delium hash