Bitcoin Forum
November 13, 2024, 11:34:02 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sign files  (Read 750 times)
gimme_bottles (OP)
Sr. Member
****
Offline Offline

Activity: 316
Merit: 250



View Profile
March 06, 2014, 04:51:28 PM
 #1

Hi,

I am looking for a way to sign the content of (binary) files with my private keys. Almost every client can sign text messages, but I haven't found a solution for signing files.

Any ideas or hints on existing solutions?

hobbes
Full Member
***
Offline Offline

Activity: 128
Merit: 107



View Profile
March 06, 2014, 07:30:32 PM
 #2

You could hash the file and then sign the hash.

It's should be relatively easy with pybitcointools or on linux command line:

   shasum -a 256 yourfile

Then you can use bitcoind or bitcoin-qt to sign.


ning
Full Member
***
Offline Offline

Activity: 173
Merit: 100



View Profile
March 08, 2014, 01:23:33 PM
 #3

Hi,

I am looking for a way to sign the content of (binary) files with my private keys. Almost every client can sign text messages, but I haven't found a solution for signing files.

Any ideas or hints on existing solutions?



Internally, the clients actually only sign the hash digest of the text message we enter:)
cranial.nerve
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
March 11, 2014, 10:40:48 PM
 #4

What a problem with gpg - OpenPGP encryption and signing tool
Code:
gpg --help
 -s, --sign [ file ]             make a signature


Code:
man gpg

Quote
       -s     Make  a  signature. This command may be combined with --encrypt (for a signed and encrypted message), --symmetric (for a signed and symmetrically encrypted message), or --encrypt and --symmetric together (for a
              signed message that may be decrypted via a secret key or a passphrase).  The key to be used for signing is chosen by default or can be set with the --local-user and --default-key options.


Almost every secure focused distributive iso signed, see for example Tails: https://tails.boum.org/torrents/files/tails-i386-0.22.1.iso.sig

However, Debian sign hashes http://cdimage.debian.org/debian-cd/7.4.0/amd64/jigdo-bd/MD5SUMS.sign
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!