0
I installed Qtum core in my Ubuntu 16.04 server and generated my wallet, and encrypted it.
For the test purpose, I changed the password using the command like below.
I typed below command to change my password.
./qtum-cli walletpassphrasechange "oldpassphrase" "newpassphrase"
Let's say my oldpassphrase is test and my new passphrase is test"
Notice that I type the double quotation mark right after the word test
./qtum-cli walletpassphrasechange "test" "test""
This returns below line that asks me to close the double quotation mark.
>
So I typed " to close it.
Surprisingly, the command line has passed!
I thought the new password would be test" or test""
But they both do not work.
Can anyone guess what the new password might be?
./qtum-cli walletpassphrasechange "test" "test"" > ". If this command passed through, what do you think the new password might be? As you mentioned, test plus a newline character is not working. So far, I have tried test, test"", test\n, test"\n". They all don't work. – JayB Kim – 2017-11-23T10:33:56.930
Try $'test\n'. The $ in front tells the shell to interpret sequences like \n rather than take them literally. – Pieter Wuille – 2017-11-23T15:32:23.213
i'll try that and let you know if it is right or not. – JayB Kim – 2017-11-24T00:22:50.857
wow!
$'test\n'work! thank you so much! – JayB Kim – 2017-11-24T01:03:24.733Can you elaborate a little more about how it is changed to
$'test\n'? I don't really get it....."test""plus newline"becomes$'test\n'Now, i know $ sign tells the shell to interpret sequences like \n, but how this double quotation mark"changed to the single quotation mark'and it is positioned right before the wordtest? – JayB Kim – 2017-11-24T01:34:23.893If I type
test"plus newline"(not"test""), then what would be the new password? – JayB Kim – 2017-11-24T01:38:35.220