Does anyone else have trouble when storing byte arrays in a map?
I have noticed this issue when storing ciphertext, as sometimes the ciphertext was unable to be decrypted, or when hashed, it resulted in a different digest when storing as []byte rather than string.
I just ran into this issue again, where cached messages which are sent over websockets were sometimes breaking the client due to invalid UTF8.
Since I changed the map to string values, the problem disappeared again.
Is it bad practice to store maps of []byte, or has anyone else had this problem?