i am using VS 2005 C# i want to encrypt and decrypt the complete file using OPEN SSL, can anyone help me in this regard.....
我正在使用VS 2005 C#我想使用OPEN SSL加密和解密整个文件,任何人都可以在这方面帮助我.....
4 个解决方案
#1
OpenSSL Wrapper for .NET: http://openssl-net.sourceforge.net/
OpenSSL Wrapper for .NET:http://openssl-net.sourceforge.net/
#2
Just for clarification you can do encryption and decryption using libcrypto which is a part of OpenSSL. But it will be unnecessary and tedius to use OpenSSL library from C#.NET. As suggested by MiffTheFox, you should be able to do all cryptography stuff using System.Security.Cryptography namespace.
只是为了澄清,您可以使用libcrypto进行加密和解密,libcrypto是OpenSSL的一部分。但是使用C#.NET中的OpenSSL库是不必要的和愚蠢的。正如MiffTheFox所建议的那样,您应该能够使用System.Security.Cryptography命名空间来完成所有加密操作。
#3
Er... I think you misunderstand what OpenSSL is.
呃......我想你误解了OpenSSL是什么。
OpenSSL implements the Secure Socket Layer protocol for securely transporting data between a client and server via TCP/IP.
OpenSSL实现了安全套接字层协议,用于通过TCP / IP在客户端和服务器之间安全地传输数据。
You should have a look at the classes offered by the System.Security.Cryptography namespace, even MSDN has a basic tutorial on encrypting files.
您应该查看System.Security.Cryptography命名空间提供的类,甚至MSDN都有一个关于加密文件的基本教程。
As per working on all platforms, I believe that most, if not all, of the System.Security.Cryptography namespace works on Mono.
根据在所有平台上的工作,我相信大多数(如果不是全部)System.Security.Cryptography命名空间都适用于Mono。
#4
SSL stands for Secure Socket Layer. It has nothing to do with encrypting files, but rather with secure (encrypted) TCP/IP connections. OpenSSL is an open source implementation, but you wouldn't need it on a Windows .NET platform.
SSL代表安全套接字层。它与加密文件无关,而是与安全(加密)TCP / IP连接无关。 OpenSSL是一个开源实现,但在Windows .NET平台上不需要它。
Take a look at the System.Security.Cryptography namespace for implementations of some common cyphers that you can use to encrypt your file. AES (symmetric algorithm) and RSA (public key encryption) are both there and widely accepted.
查看System.Security.Cryptography命名空间,了解可用于加密文件的一些常见密码的实现。 AES(对称算法)和RSA(公钥加密)都在那里并被广泛接受。
#1
OpenSSL Wrapper for .NET: http://openssl-net.sourceforge.net/
OpenSSL Wrapper for .NET:http://openssl-net.sourceforge.net/
#2
Just for clarification you can do encryption and decryption using libcrypto which is a part of OpenSSL. But it will be unnecessary and tedius to use OpenSSL library from C#.NET. As suggested by MiffTheFox, you should be able to do all cryptography stuff using System.Security.Cryptography namespace.
只是为了澄清,您可以使用libcrypto进行加密和解密,libcrypto是OpenSSL的一部分。但是使用C#.NET中的OpenSSL库是不必要的和愚蠢的。正如MiffTheFox所建议的那样,您应该能够使用System.Security.Cryptography命名空间来完成所有加密操作。
#3
Er... I think you misunderstand what OpenSSL is.
呃......我想你误解了OpenSSL是什么。
OpenSSL implements the Secure Socket Layer protocol for securely transporting data between a client and server via TCP/IP.
OpenSSL实现了安全套接字层协议,用于通过TCP / IP在客户端和服务器之间安全地传输数据。
You should have a look at the classes offered by the System.Security.Cryptography namespace, even MSDN has a basic tutorial on encrypting files.
您应该查看System.Security.Cryptography命名空间提供的类,甚至MSDN都有一个关于加密文件的基本教程。
As per working on all platforms, I believe that most, if not all, of the System.Security.Cryptography namespace works on Mono.
根据在所有平台上的工作,我相信大多数(如果不是全部)System.Security.Cryptography命名空间都适用于Mono。
#4
SSL stands for Secure Socket Layer. It has nothing to do with encrypting files, but rather with secure (encrypted) TCP/IP connections. OpenSSL is an open source implementation, but you wouldn't need it on a Windows .NET platform.
SSL代表安全套接字层。它与加密文件无关,而是与安全(加密)TCP / IP连接无关。 OpenSSL是一个开源实现,但在Windows .NET平台上不需要它。
Take a look at the System.Security.Cryptography namespace for implementations of some common cyphers that you can use to encrypt your file. AES (symmetric algorithm) and RSA (public key encryption) are both there and widely accepted.
查看System.Security.Cryptography命名空间,了解可用于加密文件的一些常见密码的实现。 AES(对称算法)和RSA(公钥加密)都在那里并被广泛接受。