Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: smartiboy on August 02, 2017, 03:48:38 PM



Title: SOLVED - Bitcoin Core have problem with walletpassphrase having special chars
Post by: smartiboy on August 02, 2017, 03:48:38 PM
Bitcoin Client Software and Version Number: Bitcoin Core 0.14.2
Operating System: macOS 10.12.6
System Hardware Specs: 42.9 GHz Quad Core CPU with 8 GB RAM and 56 GB free hard drive space.
Description of Problem: Bitcoin Core seems have problem with walletpassphrase having special characters
Any Related Addresses: None
Any Related Transaction IDs: None
Screenshot of the problem: None
Log Files from the Bitcoin Client: None


Hi all,
I face a kind of problem when I want to use my walletpassphrase in the debug console.
(When I use it in the GUI all works fine with my walletpassphrase)

But in console I get:
walletpassphrase "xxxxx" 600

 - Error: invalid command line

I have to say the my passphrase is quite long and is including special chars like ,="_ and '

for me it looks like the console can't handle the " or ' , maybe ?

any help / ideas

kr
Michael


SOLVED - escaping did the trick
thank you all very much


Title: Re: Bitcoin Core seems have problem with walletpassphrase having special characters
Post by: cr1776 on August 02, 2017, 04:23:01 PM
Are you escaping the special characters and/or the entire paraphrase?


Title: Re: Bitcoin Core seems have problem with walletpassphrase having special characters
Post by: HeRetiK on August 02, 2017, 04:36:07 PM
Escape quotation marks " within the passphrase with backslashes like so: \"

Escape backslashes \ within the passphrase with backslashes like so: \\
( ^ not 100% sure if necessary )

Unless you have some funky whitespace characters in your passphrase the rest shouldn't matter.


Title: Re: Bitcoin Core seems have problem with walletpassphrase having special characters
Post by: achow101 on August 02, 2017, 04:38:32 PM
If you password contains double quotes, then surrounding your password with double quotes is not going to help as the string parse will only read the string surrounded by the first double quote. To have such special characters in your passphrase, you will need to surround your entire passphrase string with single quotes. However if you have single quotes in your password, you will need to escape those single quotes with \'