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

lokbox

v0.1.3

Published

LOKBOX is a recursive object value securing method which employs BLOWFISH encryption to secure JSON object contents. All elements of the object are encrypted/decrypted with exception of ID and Lock flags inside specific objects. For use with STAKK, SATRN

Downloads

4

Readme

LOKBOX

Capable: JSON, BLOWFISH, UTF8

[Note: All Copyrights/Trademarks aformentioned are heretoforth property of their respective parties. No ownership claimed] Written + Modified by Emanuel Fludd email: [email protected] License: MIT

LOKBOX is a recursive object value securing method which employs BLOWFISH encryption to secure JSON object contents. All elements of the object are encrypted/decrypted with exception of ID and Lock flags inside specific objects. For use with STAKK, SATRN RUDP telecommunications models.

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

JSON is built on two structures:

A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.

Blowfish is a symmetric block cipher that can be used as a drop-in replacement for DES or IDEA. It takes a variable-length key, from 32 bits to 448 bits, making it ideal for both domestic and exportable use. Blowfish was designed in 1993 by Bruce Schneier as a fast, free alternative to existing encryption algorithms. Since then it has been analyzed considerably, and it is slowly gaining acceptance as a strong encryption algorithm. Blowfish is unpatented and license-free.

Exposed Functions

lokbox.isLocked(object);

lokbox.lock(object,key);

lokbox.unLock(object,key);

Usage Example


var lokbox = require('lokbox');

var ob = {
	test:"Hello",
	another:"Hello2",
	me:false,
	inside:{
		test:"Hello",
		another:"Hello2",
		me:false
	}
}

var encryptedOb = lokbox.lock(ob,"MySecretKey");

console.log("Is the object locked? "+lokbox.isLocked(encryptedOb));

var decryptedOb = lokbox.unlock(encryptedOb,"MySecretKey");

console.log("What is the value of 'test' in the unlocked object? "+decryptedOb.test);