Bitcoin Forum
May 07, 2024, 10:14:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SOLVED - Bitcoin Core have problem with walletpassphrase having special chars  (Read 486 times)
smartiboy (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 02, 2017, 03:48:38 PM
Last edit: August 02, 2017, 05:07:58 PM by smartiboy
 #1

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
1715120058
Hero Member
*
Offline Offline

Posts: 1715120058

View Profile Personal Message (Offline)

Ignore
1715120058
Reply with quote  #2

1715120058
Report to moderator
1715120058
Hero Member
*
Offline Offline

Posts: 1715120058

View Profile Personal Message (Offline)

Ignore
1715120058
Reply with quote  #2

1715120058
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715120058
Hero Member
*
Offline Offline

Posts: 1715120058

View Profile Personal Message (Offline)

Ignore
1715120058
Reply with quote  #2

1715120058
Report to moderator
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1301


View Profile
August 02, 2017, 04:23:01 PM
 #2

Are you escaping the special characters and/or the entire paraphrase?
HeRetiK
Legendary
*
Offline Offline

Activity: 2926
Merit: 2091


Cashback 15%


View Profile
August 02, 2017, 04:36:07 PM
 #3

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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
August 02, 2017, 04:38:32 PM
 #4

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 \'

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!