Base64加密好用吗? [英] Is Base64 encryption good to use?

查看:109
本文介绍了Base64加密好用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个应用程序,其中我使用查询字符串将数据发送到其他页面,

我想使用一种简单的加密技术,因此找到了base64加密技术,并且我正在使用它.

我只是需要你们的一些建议,如果更可取/很好使用这种加密方式,如果不是,那是最好的使用方法.


谢谢大家..

祝你有美好的一天.

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.

推荐答案

Base64不是一种加密机制-它是一种数据转换机制.它不需要密钥,并且完全不安全.如果任何人读取您的数据对数据通信有任何想法,则可以立即阅读.

相反,请查看使用存储在cookie中的会话信息.您可以根据需要对内容使用适当的加密.
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.


这不是加密.一点也不.因此,很好用.

忘记安全性-使用base64与以开放文本书写完全相同.这种编码的主要目的:仅使用ASCII字符对二进制文件/流进行编码.这是MIME类型之一.请参见 http://en.wikipedia.org/wiki/Base64 [ http://msdn.microsoft.com/en-us/library/fkytk30f.aspx [^ ].

从这里开始: http://en.wikipedia.org/wiki/Cryptography [在.NET中使用加密 [ .NET Encryption Simplified [
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


考虑Sol1,Sol2
base64是一种通过HTTP协议发送数据的编码技术.很好用.

如果您想真正加密数据,请使用DES加密,您可以在
中找到它
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;


这篇关于Base64加密好用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆