salty-system
v1.1.0
Published
A salty node package to quickly generate salted hashes for system uuids
Downloads
11
Maintainers
Readme
A salty node package to quickly generate salted hashes for system UUIDs.
Install
yarn global add salty-system
npm install -g salty-system
Upgrade
yarn global upgrade salty-system --latest
npm update -g salty-system
Usage
# input
salty c2c5e1dc-7219-4450-9300-9013549b50c2
# output (to clipboard)
$2a$10$6IaEwf2ch4eXonRnWrs2xOjYumgu7fLvnsj6ba/0cFvVhi.dCveGq
# input
salty --id c2c5e1dc-7219-4450-9300-9013549b50c2 --name 'Salty user' --email '[email protected]'
# output (to terminal)
{
"id": "c2c5e1dc-7219-4450-9300-9013549b50c2",
"name": "Salty user",
"email": "[email protected]",
"hash": "$2a$10$gQpghB5fjvSEXrYwwRdIjed0UCevdHHwYQ/UV2fli9IIIykx/PWMi"
}
# input
salty --copy --id c2c5e1dc-7219-4450-9300-9013549b50c2 --name 'Salty clipboard'
# output (to clipboard)
{
"id": "c2c5e1dc-7219-4450-9300-9013549b50c2",
"name": "Salty clipboard",
"hash": "$2a$10$gQpghB5fjvSEXrYwwRdIjed0UCevdHHwYQ/UV2fli9IIIykx/PWMi"
}
Uninstall
yarn global remove salty-system
npm uninstall -g salty-system