/ * Use DES, MD5 to the string, data file encryption.
// Encrypted string, pay attention to the length of StrenchKey is 8 bits (if you want to increase or reduce the length length, adjust the length of the IV is) Public String Desencrypt (String StRTEXT, STRING Strencrkey)
// Decrypt string, pay attention to Strench, the length of 8 bits (if you want to increase or reduce the length length, adjust the length of the IV)
Public String Desdecrypt (String STRTEXT, STRING SDECRKEY)
// Encrypted data file, pay attention to the length of Strencrkey (if you want to add or reduce the length length, adjust the length of IV)
Public void desencrypt (string m_infilepath, string m_outfilepath, string strencrkey)
// Decrypt data file, pay attention to StrenchKey length of 8 bits (if you want to increase or reduce the length length, adjust the length of IV)
Public void deSDecrypt (String M_INFILEPATH, STRING M_OUTFILEPATH, STRING SDECRKEY)
// MD5 encryption
Public String Md5encrypt (String Strtext)
* /
/ ************************************************** *************************************************** * CRYPTOGRAPHY CLASS for CRYPTOGRAPHY Author: Jim E_mail: tjq_tang@hotmail.com * Thanks: * URI: * * ******************************************** *********************************************************** **** / using system; using system.security.cryptography; using system.io; using system.windows.form;
namespace Netbee.Classes.Security {///
} Catch (system.exception error) {messagebox.show (error.Message); return "error:" error.Message "/ r";}} ///