Make base16 encoding case preserving.

This commit is contained in:
Kevin Atkinson
2017-08-28 17:48:25 -04:00
parent 8d1441db4b
commit e98e07ec91
2 changed files with 25 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ var sampleBytes = []byte("Decentralize everything!!")
var encodedSamples = map[Encoding]string{
Identity: string(0x00) + "Decentralize everything!!",
Base16: "f446563656e7472616c697a652065766572797468696e672121",
Base16Upper: "F446563656E7472616C697A652065766572797468696E672121",
Base32: "birswgzloorzgc3djpjssazlwmvzhs5dinfxgoijb",
Base32Upper: "BIRSWGZLOORZGC3DJPJSSAZLWMVZHS5DINFXGOIJB",
Base32pad: "cirswgzloorzgc3djpjssazlwmvzhs5dinfxgoijb",