我自己的超強的XML文件加密類

2021-04-13 09:15:43 字數 821 閱讀 6403

using system;

using system.io;

using system.security.cryptography;

using system.xml;

using system.data;

namespace hxh.api

;this.iv=new byte;

//get the key and iv.

///

/// 讀取加密檔案到流

///

///

///

public xmldocument read(string file)

public dataset readxml(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) }

}}

原創 我自己的XML處理類 功能較多但有侷限性

package jdom 新聞專用xml類檔案 功能 刪除由上到下 新增在最下面新增 讀取由下向上 可以跟據id刪除記錄 可以由上到下刪除x條記錄 新增時可以限制記錄多少,多於時刪除舊的再插入新資料 全程資料交換使用arraylist 方便處理 不滿意 擴充套件性不強針對特定的xml檔案,沒能無限級...

輕量級的xml文件生成類

輕量級xml文件生成類 非dom author q3boy version v0.1 aplha update 2003 9 8 支援element cdata declare attribute comment,可選擇是否包含換行和縮排 class xml 設定元素型別 function sett...

Xml文件的解析

1.首先自定義乙個xml文字檔案 1天下無雙 1202 流星錘150 3無敵霸王龍 2002.再自定義乙個類 using system using system.collections.generic using system.linq using system.text using system....