Encryption c# and Cookies

I'm looking for algorithm which not encrypt string with '=' in the end.

Why it that? I'm using this to store data in the cookie, and the '=' in the string conflicts with the '=' in the cookie.

Anybody has idea? Thanks..


The = at the end of the string is not from the encryption, it's from using base64 encoding.

You can use hexadecimal format instead:

string encoded = BitConverter.ToString(data).Replace("-","");

This string contains only the characters 0-9 and A-F, so it won't cause any conflicts.

Need Your Help

Mouse click doesn't fire event with Crafty.js

javascript mouseclick-event craftyjs

I've been trying to build a game using Crafty.js. I have an image that serves as a button, and once the user clicks on it he will be led to the next page. However, for some reason the mouse click j...

What's the difference between these two ways of creating a C++ class?


I don't know how to name these things properly. I want to create a class, declare and define it's constructor with a variable and default value. I figured out that both these ways work. But what's ...