Simple text encryption
Hey all
I'm looking for a nice simple password encryption algorithm. I'm not looking for anything amazingly military type secure, but If I could do something irreversible, I'd be happy. I've looked at a couple of google searches, but found nothing particularly interesting. Any help would be greatly appreciated.
Thanks
M
swinefish
Junior Poster in Training
77 posts since Mar 2009
Reputation Points: 16
Solved Threads: 7
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
anyone who uses that kind of thing in a real application needs to be shot.
I did!:) But it was some 20 years ago...
I agree with you Tom Gunn, the methods of .NET should be used instead. But you will probably agree with me there are plenty of companies out there who still store their sensitive info in just plain text format.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
Thanks for all the advice guys :-)
This application will never hit the market, since it's only a project for university. But since it does count 60% of our year mark, I suppose I should treat like a full commercial application. I'll take a look at the .NET libraries... a friend of mine had a problem that encrypting the same string twice gave different results so I was trying to avoid it. ANy idea why something like that might happen?
Thanks again :-)
M
swinefish
Junior Poster in Training
77 posts since Mar 2009
Reputation Points: 16
Solved Threads: 7
>>I do not want to be the programmer that caused that.
You got a great point there.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
MD5 and SHA are Hashing algorithm.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Well thanks to the link that ddanbe left, I've gone with XOR encryption. I know it's incredibly symplistic, but I am really looking for the simplest option. But thanks for all the advice :-)
swinefish
Junior Poster in Training
77 posts since Mar 2009
Reputation Points: 16
Solved Threads: 7
@Tom
Don't die, even on the inside!
I think you are just to valuable around here!
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
I have to admit .. there are cases where I use handmade encryption (xor). Its not always a bad idea...
Let us instead give congrats to danny for providing the solution :)
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
serkan sendur
Postaholic
2,062 posts since Jan 2008
Reputation Points: 854
Solved Threads: 127
Tom!
I did not mean to kill you inside... But I'm looking for the quickest option... Plus I do pad it with a little gibberish to make the length harder to find... Works pretty well actually.
M
swinefish
Junior Poster in Training
77 posts since Mar 2009
Reputation Points: 16
Solved Threads: 7