Monday May 2nd

Sunday May 1st

Friday April 29th

Thursday April 28th

0 Kicks

Reverse a string in C# and bitwise XOR

Showing the principle of XOR with reversing a string in C#. It's also pretty fast. Because bitwise operations should be common knowledge for every developer out there.


I think we're slightly beyond needing to XOR a string to reverse it. This tip is virtually useless; if you surveyed a billion lines of code you might find one where a string of text is reversed.

I use string reverse all the time in my code. Instead of passing passwords in plain text over the internet, I reverse them. ;)

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network