Bitcoin Forum
July 10, 2024, 12:08:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Spaces in the password unlocking the wallet (bitcoin-cli).  (Read 1317 times)
p100 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 09, 2017, 08:40:23 AM
 #1

1. Using bitcoin-qt one can enter password with spaces in the window to decrypt the wallet. How to do it with bitcoin-cli? Imagine a password is 120 130 140 (two spaces between the numbers), if I type walletpassphrase 120 130 140 150 will bitcoin-cli interpret 120 130 140 as password (with two spaces) and 150 as timeout?

2. What if spaces are at the beginning and the end of password? How to send such phrase using bitcoin-cli (in GUI when typing spaces arrows appear, so I think GUI normally "sees" those spaces). Thanks!
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 6785


Just writing some code


View Profile WWW
April 09, 2017, 12:41:44 PM
 #2

1. Using bitcoin-qt one can enter password with spaces in the window to decrypt the wallet. How to do it with bitcoin-cli? Imagine a password is 120 130 140 (two spaces between the numbers), if I type walletpassphrase 120 130 140 150 will bitcoin-cli interpret 120 130 140 as password (with two spaces) and 150 as timeout?
No, that will not work. You have to surround your passphrase with quotes, so like
Code:
walletpassphrase "120 130 140" 150

2. What if spaces are at the beginning and the end of password? How to send such phrase using bitcoin-cli (in GUI when typing spaces arrows appear, so I think GUI normally "sees" those spaces). Thanks!
Again, use double quotes around your entire passphrase.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
April 11, 2017, 11:35:04 AM
 #3

No, that will not work. You have to surround your passphrase with quotes, so like
Code:
walletpassphrase "120 130 140" 150
What if the quote is a part of password?  Tongue (this ia s joke, not a question, not a problem)
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1523


No I dont escrow anymore.


View Profile WWW
April 15, 2017, 10:32:47 AM
 #4

No, that will not work. You have to surround your passphrase with quotes, so like
Code:
walletpassphrase "120 130 140" 150
What if the quote is a part of password?  Tongue (this ia s joke, not a question, not a problem)


Escape it  Roll Eyes

Im not really here, its just your imagination.
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!