Skip to content

Instantly share code, notes, and snippets.

@deepakjois
Created May 31, 2013 09:13
Show Gist options
  • Save deepakjois/5683797 to your computer and use it in GitHub Desktop.
Save deepakjois/5683797 to your computer and use it in GitHub Desktop.
// ciphertext is a []byte
cipherhex := make([]string, len(ciphertext))
for i, v := range ciphertext {
cipherhex[i] = fmt.Sprintf("%02x", v)
}
return strings.Join(cipherhex,"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment