Click here to Skip to main content
15,891,993 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have a application , where i send data over to other pages using querystrings,

I wanted to use a simple encryption technique, So found a base64 encryption technique and i am using it.

I just need some suggestions from you guys, If is preferable / Good to use this kind of encryption , If not which is the best technique to use.


Thanks a lot guys..

Have a good day.
Posted
Comments
Sergey Alexandrovich Kryukov 9-Nov-11 3:13am    
Who told you it's encryption?
--SA

Base64 is no an encryption mechanism - it is an data conversion mechanism. It requires no key and is completely insecure. If anyone reading your data has any idea of data communications, it is immediately readable.

Instead, look at using Session information, which is stored in cookies. You can use proper encryption on the content if you need to.
 
Share this answer
 
Comments
RaisKazi 9-Nov-11 3:21am    
Agree, Hardly one line of code and original string is with you to break Base64(which is indeed not an encryption technique). Sessions will be more secure. 5ed.
It is not encryption. Not at all. As such — it's good to use.

Forget security — using base64 is exactly the same as writing in open text. The major purpose of this encoding: encoding of binary files/streams using only ASCII characters. This is one of MIME types. See http://en.wikipedia.org/wiki/Base64[^].

What to advise to use instead? I don't know — it depends on what do you want to do. You just need to get some basis education in this field.

Start from here: http://msdn.microsoft.com/en-us/library/fkytk30f.aspx[^].

And from here: http://en.wikipedia.org/wiki/Cryptography[^].

Read these CodeProject articles:
Using Encryption in .NET[^],
.NET Encryption Simplified[^].

—SA
 
Share this answer
 
v2
Comments
RaviRanjanKr 9-Nov-11 3:15am    
MSDN link is awesome, My 5+ SA.
Sergey Alexandrovich Kryukov 9-Nov-11 3:21am    
I don't see what's awesome, but thank you.
--SA
RaviRanjanKr 9-Nov-11 3:27am    
My intention was to write awesome word because of refereed MSDN link has every thing related to topic that can help shekhardumala by any one, whatever You are most welcome SA :D
RaisKazi 9-Nov-11 3:17am    
Valid Points.
Sergey Alexandrovich Kryukov 9-Nov-11 3:22am    
Thank you, Rais.
--SA
Consider the Sol1, Sol2
base64 is a Encoding Technique to send the data over HTTP protocols. It's good to use.

if you want to really encrypt the data, go for DES encryption which you can find in
System.Security.Cryptography;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900