CFS Encoded Cryptographic Library

Source: Internet
Author: User
Encryption <%
'********************************************************************************
'**
' *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 Function
Function Cfsencode (CODESTR)

Dim Codelen
Dim Codespace
Dim Newcode

Codelen = 30
Codespace = Codelen-len (CODESTR)

If not Codespace < 1 Then
For CECR = 1 to Codespace
Codestr = codestr & Chr (21)
Next
End If

Newcode = 1

Dim Been
For CECB = 1 to Codelen
Been = Codelen + ASC (Mid (codestr,cecb,1)) * CECB
Newcode = Newcode * Been
Next

Codestr = Newcode
Newcode = Empty

For CEC = 1 to Len (CODESTR)
Newcode = Newcode & Cfscode (Mid (codestr,cec,3))
Next

For CEC = to Len (newcode)-2
Cfsencode = Cfsencode & Mid (newcode,cec,1)
Next

End Function


Function Cfscode (Word)
for cc = 1 to Len (Word)
Cfscode = Cfscode & Asc (Mid (word,cc,1))
Next
Cfscode = Hex (Cfscode)
End Function

%>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.