Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions utils/changepassphrase.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Don't unlock via cli as your password is stored in the history
# # run this script from the folder containing the blocknetdx-cli executable
set -e

read -s -p 'blocknetdx wallet current passphrase: ' passphrase_current
read -s -p "$(echo -e '\nblocknetdx wallet new passphrase: ')" passphrase_new
read -s -p "$(echo -e '\nblocknetdx wallet confirm new passphrase: ')" passphrase_confirm

if [ "$passphrase_new" == "$passphrase_confirm" ]; then

echo -e "\n"

./blocknetdx-cli walletpassphrasechange ${passphrase_current} ${passphrase_new}

else

echo -e "\npasswords do not match"

fi

exit 0