Skip to content

Go version is not Unicode safe #20

@tsak

Description

@tsak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions