我需要在asp.net中将字符串转换为二进制的代码吗?

我需要在asp.net中将字符串转换为二进制的代码吗?

问题描述:

我需要在asp.net中将字符串转换为二进制的代码???那么我需要代码以及asp.net中的加密和解密???请帮助我吗?

I need code for string to binary conversion in asp.net??? then i need code as well as encryption and decryption in asp.net???? pls help me guys???

首先,这不是一个好问题.
它不包含您想要的任何细节,也没有任何实际意义.

其次,这不是它的工作方式.这个想法是:您尝试这样做,陷入困境,寻求帮助.
仅仅要求提供代码不会使任何人满意,并且会导致您无法获得帮助.

字符串到字节很简单,我假设您正在尝试达到以下目的:
First off, that isn''t a good question.
It contains no detail of what you want, and makes no real sense.

Secondly, that isn''t how it works. The idea is: You try to do it, you get stuck, you ask for help.
Just asking for code will not please anyone, and will result in you not getting help.

String to byte is easy, and I assume what you are trying to achive:
string s = "Hello";
byte[] bytes = System.Text.Encoding.ASCII.GetBytes(s);



Google会帮助您进行加密和解密.



Google will help you with encryption and decryption.