Bitcoin Forum
August 31, 2024, 12:20:20 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Wallet Backup/Encryption System. bitcoin-wallet-rsa  (Read 1125 times)
Anonymous
Guest

August 25, 2011, 04:47:11 AM
 #1

https://github.com/macintosh264/bitcoin-wallet-rsa

This is a little program I wrote so you can backup your wallet using RSA encryption. It genereates a key-pair, and encrypts your wallet using the public key. It writes the private key to a file along with the wallet that has been split up into 100 character segments, then encrypted, base64'd, placed in an array, and then that array is json-encoded, and then that is base64'd. You encrypt with one command.

php -f ./encrypt.php -- <wallet location>

then it creates two new files in ./ called WALLET_ENCRYPTED and DECRYPT_KEY. You use these files to decrypt your wallet. You decrypt with a similar command:
php -f ./decrypt.php -- <encrypted wallet location> <key location>

and it creates a file called WALLET_DECRYPTED.dat in ./

It is simple, but powerful.

Thanks,
macintosh264
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!