using system;
using system.io;
using system.security.cryptography;
using system.xml;
namespace hxh.api
;this.iv=new byte;
//get the key and iv.
///
/// 讀取加密檔案到流
///
///
///
public xmldocument read(string file)
///
/// 將流加密寫入檔案
///
///
///
public void write(ref xmldocument xdoc,string filename)
///
/// 解密乙個存在的檔案
///
///
public void decrypto(string file)
try
catch(system.exception) }
///
/// 設定加密或解密的密匙
///
/// 長度等於16的ascii字符集的字串
public void setkey(string s)
try
catch(system.exception) }
}}
C 乙個封裝的加密解密類
using system using system.text using system.globalization using system.security.cryptography using system.windows.forms namespace jh.encrypts 使用預設金鑰字串...
C 乙個封裝的加密解密類
using system using system.text using system.globalization using system.security.cryptography using system.windows.forms namespace jh.encrypts 使用預設金鑰字串...
C 乙個封裝的加密解密類
using system using system.text using system.globalization using system.security.cryptography using system.windows.forms namespace jh.encrypts 使用預設金鑰字串...