Encrypt a string in c# windows application

kingg

Newbie
Joined
Apr 6, 2012
Messages
38
Reaction score
2
I don't want to use encryption algorithm which are inbuilt in c#, is there any way to make custom encryption in c#?

ANy help regarding this is appreciated.
 
Search on google, you might find some interesting algorithms (not built-in c#).
 
You can contact me on skype, i wrote a class for it for a prior project.
skype : byte-x
 
I don't want to use encryption algorithm which are inbuilt in c#, is there any way to make custom encryption in c#?

Yeah, I'm resurrecting an old thread; but just wanted to add in case anyone else reads this thread.... DON'T. Just.... DON'T.

Unless you're a cryptography expert (ie. Bruce Schneier and those in his league), the chances of you creating a novel encryption algorithm that isn't breakable by someone experienced doing so in less than a day, is pretty much none.

If you want to create an encoding algorithm just to make stuff slightly more complicated for people to poke around into your implementation, fine. But the word encryption implies secure; and any custom algorithm you write will almost guaranteed not be secure.

I'm not a cryptanalyst, but I know enough about encryption to take a whack at breaking whatever it is y'all come up with. I'll do it for fun *shrug*.

Just use AES/DES/etc for symmetric or RSA for asymmetric. Why roll your own o_O? XOR based algorithms are easily broken by statistical analysis of the resulting cipher text.

========

xbyte's pastebin is an acceptable implementation since it's using TripleDES. Not sure why his example is using a static salt though... check this out for an example of using dynamic salts: ( can't post links yet, defuse/password-hashing on GitHub ).

Dynamic salts prevents someone from computing the output for value X and using it to find all instances of encrypted X.
 
Last edited:
Back
Top