XOREncryption icon indicating copy to clipboard operation
XOREncryption copied to clipboard

Go version is not Unicode safe

Open tsak opened this issue 4 years ago • 0 comments

Hi Kyle,

Came across your blog post when searching for "golang xor encryption" and was testing it. Unfortunately, your function isn't Unicode safe. I've created a few test cases in https://play.golang.org/p/UdCubbEZECx to show the issue.

Might be worth putting a warning into the code/blog post, as string handling in Go has its gotchas unfortunately.

Thanks, tsak

tsak avatar Dec 30 '20 10:12 tsak