Nothing Special   »   [go: up one dir, main page]

Skip to content

a tool to generate password from domain name and your custom key safely

License

Notifications You must be signed in to change notification settings

myfreeer/masterkey

Repository files navigation

masterkey

a tool to generate password from domain name and your custom key

See Here for a demo of stable version, result is shown in f12 console

See Here for a demo of dev version, result is shown in f12 console

Click Here for a userscript version, result is shown in f12 console

Requirement

Base64 by webtoolkit.info licensed CC BY 2.0 UK

js-sha512 by emn178 licensed MIT License

aes-js by ricmoo licensed MIT License

A copy of these scripts is in src folder

Usage

usemasterkey.makePassword(domain, masterKey, passwordLength)to make a password in lowercase with passwordLength

usemasterkey.makePassword2(domain, masterKey, passwordLength)to make a password in both uppercase and lowercase with passwordLength

domainandmasterKeyis required for password generation, passwordLengthwill be 16 if not defined

Example

masterkey.makePassword2(location.hostname, "input your preferred masterKey here inside quotation marks", 16);

Bookmarklet

You can generate a bookmarklet online or manually with the code below:

javascript:(function() {var script = document.createElement('script');script.onload = function() {prompt('Password Generated for "' + masterkey.parseHostName(location.hostname) + '" :', masterkey.makePassword2(location.hostname, '/****/', 16))};script.src = "https://myfreeer.github.io/masterkey/src/masterkey_full.js";document.getElementsByTagName('head')[0].appendChild(script);})();

Important: Replace the /****/ inside quotation marks with your preferred string as a masterkey before use

Due to network or browser reason, you might need to wait some seconds for the script to be loaded

Bookmarklet might be blocked by Content Security Policy

TODO

auto-filling feature for userscript version

Releases

No releases published

Packages

No packages published