Reverse a string in C# and bitwise XOR (weblogs.sqlteam.com)

submitted by spirit1spirit1(3160) 5 years ago

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.

2 comments |category: |Views: 254

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by yesthatmcgurkyesthatmcgurk(4063) 5 years ago 0

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.

Reply

posted by gavinjoycegavinjoyce(25.7k) 5 years ago 0

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

Reply

information Login or create an account to comment on this story