I believe author by mistake used NewCFBEncrypter instead of NewCFBDecrypter while decrypting cipher text.
Although it's a good exercise for a learners to get more familiar with go errors and exceptions and try to troubleshoot them, I'm a little bit confused with the fact that broken code is committed into examples repo, which means that there were little or no technical review :))))
I believe author by mistake used NewCFBEncrypter instead of NewCFBDecrypter while decrypting cipher text. Although it's a good exercise for a learners to get more familiar with go errors and exceptions and try to troubleshoot them, I'm a little bit confused with the fact that broken code is committed into examples repo, which means that there were little or no technical review :))))