--
When you decode the ciphertext, you're getting a string of raw bytes. Many of these (if it's a good crypto algorithm) will be >127, which is not valid ASCII, and so its UTF-8 encoding will be used when its in a string (which is two bytes long). If you're looking for a histogram of the bytes in the ciphertext, just use a map[byte]int:
Well, this is what I did at first, but after counting single characters, I want to count the digrams and trigrams, and I can't think of a sane way to do that besides just encapsulating them in a string.
Slices aren't allowed as map keys