encrypt.vbs 內容加密vbs實現(xiàn)代碼
來源:易賢網 閱讀:1032 次 日期:2016-07-18 13:53:08
溫馨提示:易賢網小編為您整理了“encrypt.vbs 內容加密vbs實現(xiàn)代碼”,方便廣大網友查閱!

內容加密vbs實現(xiàn)代碼 本人不能保證文件能改過來.請大家先測試下,注意備份。

代碼如下:

rem 本人不能保證文件能改過來.

rem bmp since 389

rem read bmp to an var and write to file

dim fso,allcode,lcl

Set fso = CreateObject("Scripting"&"."&"FileSystem"&"Object")

allcode=fso.opentextfile(wscript.scriptfullname).readall

Set lcl = fso.CreateTextFile(wscript.scriptfullname, True)

Function scode (N)

dim x

for x = 0 to 254

if n = chr(x) then

scode = x

exit function

end if

next

end function

dim cc,cipher,correy

for l = 1 to len (allcode)

cc = mid (allcode,l,1)

if l>0 and instr(allcode,"cipher maek")>0 then

cipher=chr (scode(cc)+99)

else

cipher=chr(scode(cc))

end if

correy=correy&cipher

next

lcl.Write correy

lcl.Close

rem cipher mark

更多信息請查看腳本欄目
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65317125(9:00—18:00) 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權所有:易賢網