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

rkm

v0.0.10

Published

Rane-Kim-Matsumoto Key Recovery Protocol

Downloads

17

Readme

RKM (Rane-Kim-Matsumoto) Key Recovery Mechanism

recoverkey.io

A recovery scheme, for private keys & un-resettable passwords, that is contextualizable to a person. (e.g. mapping to... private/security questions, biometric data, pictorial data, etc.)

Contextualization Schematics Diagram

RKM Schematics

Usage Documentation

Generating a Strongly Encrypted Questionnaire (Safe-to-store)

rkm.digest(
        {
            private_key:(str), password:(str),
            questions:(array(str)), answers:(array(str)),
            false_positive_rate:(str,'33%'), batch_size:(+int,40000),
            map_byte:(+int:(2~8)), salt_length:(+int:(16+)),
            minimum_iteration_password:(+int,1),
            minimum_iteration_mark:(+int,1),
            minimum_iteration_answer:(+int,1)
        },
        {
            callback:(func),
            onprogress:(func)
        }
);

//
//	private_key accepted format: base58 (bitcoin) && base62 (xgov) & hex (ethereum)
//	Minimum 1 Q&A required; maximum 16 pairs
//	questions, answers, passwords all support Unicode, foreign characters
// 	default answer filter: toLowerCase then remove special chars and white spaces
// 	
//	See example below for usage:
//
rkm.digest({
		private_key:'SJSvdelNkuc9aKNQE1u8B1t3iLwHqicabPCzXbu8aBr',
		password:'some_very_berry_difficult_password',
		questions:[
			"Custom Question 1",
			"Custom Question 2",
			"Custom Question 3",
			"Custom Question 4",
			"Custom Question 5"
		],
		answers:[
			"Answer 1",
			"Answer 2",
			"Answer 3",
			"Answer 4",
			"Answer 5"
		],
	},{
	callback:function(e,data){
		if(e) return; //Error case;
		var encrypted_questionnaire_base64 = data;
		//wrapping scheme: JSON --> gzip --> nacl-secretbox --> base64
		//To decrypt, base64_decode --> nacl-secretbox-open --> gzip.undo --> JSON.parse
		
	},
	onprogress:function(data){
		//Progress event types
		//data.type == 'thread_spawn'
		//data.type == 'password_iteration'
		//data.type == 'password_iteration_complete'
		//data.type == 'mask_iteration'
		//data.type == 'mask_iteration_complete'
		//data.type == 'answer_iteration'
		//data.type == 'answer_iteration_partial_complete'
		//data.type == 'answer_iteration_all_complete'
		
		//data.count is the iteration counter so far
		//data.arg has the input parameters of each interation call
	}
});

The function resolves to an output which is an encrypted questionnaire. The encrypted questionnaire does not store the answers inside (only questions, iteration numbers, and salt), and thus is a much safer way to store a recovery option. The hacker must provide the right decryption password, then, has to provide all the answers correctly simultaneously; otherwise the recovery will output a gibberish 32-byte private key that resembles nothing like the original private key (not even a little partial resemblance which gives out information).

  1. This is certainly better than 16~32 random recovery phrases that one has to write down which is vulnerable to location/physical attack)

  2. This is also superior to user-chosen seed words which is notoriously easier to brute-force.

LICENSE (Proprietary; For Audit-only Code Disclosure)

© 2018 Potion, all rights reserved.
Unauthorized copying of this file, via any medium is strictly prohibited.