用CFS编码对函式库进行加密

时间:2021-05-23

本文介绍一种用CFS编码对函式库进行加密的方法。
<%'********************************************'**'*CFS Encode Function*'**'*Produced by ASP-Zone*'**'*Main website is located at* '*http://asp.diy.com.tw/*'**'*E-MAIL:*'*thiefghost@games.com.tw*'**'*Use this function:*'*<!--#include file="Codefun.fun" -->*'**'*2001/8/3*'**'********************************************'Encode FunctionFunction CfsEnCode(CodeStr)Dim CodeLenDim CodeSpaceDim NewCodeCodeLen = 30CodeSpace = CodeLen - Len(CodeStr)If Not CodeSpace < 1 ThenFor cecr = 1 To CodeSpaceCodeStr = CodeStr & Chr(21)NextEnd IfNewCode = 1Dim BeenFor cecb = 1 To CodeLenBeen = CodeLen Asc(Mid(CodeStr,cecb,1)) * cecbNewCode = NewCode * BeenNextCodeStr = NewCodeNewCode = EmptyFor cec = 1 To Len(CodeStr)NewCode = NewCode & CfsCode(Mid(CodeStr,cec,3))NextFor cec = 20 To Len(NewCode) - 18 Step 2CfsEnCode = CfsEnCode & Mid(NewCode,cec,1)NextEnd FunctionFunction CfsCode(Word)For cc = 1 To Len(Word)CfsCode = CfsCode & Asc(Mid(Word,cc,1))NextCfsCode = Hex(CfsCode)End Function%>

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章