Skip to content

Commit

Permalink
Merge pull request #2 from benburkert/hex-encode-digest
Browse files Browse the repository at this point in the history
vcrypt: hex encode digests in armor output
  • Loading branch information
benburkert committed Dec 9, 2015
2 parents a0b14be + ca47d80 commit e1f0c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions armor.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vcrypt

import (
"encoding/base64"
"encoding/hex"
"encoding/pem"
"errors"
)
Expand Down Expand Up @@ -32,7 +32,7 @@ func Armor(msg Message) ([]byte, error) {
Type: pemType,
Bytes: data,
Headers: map[string]string{
"Digest": base64.StdEncoding.EncodeToString(fp),
"Digest": hex.EncodeToString(fp),
},
}

Expand Down

0 comments on commit e1f0c41

Please sign in to comment.