Advertisement
7_2009-2012 String Manipulation #217490

BMTEncode

Encode/Decode a string. (BMTEncode refined version). If f.ex. enter AA the 2 output chars wont be the same.

AI

AI 摘要: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

源代码
original-source
'* Sorry for stealing code, but I couldn't help it when I saw the garbage
'* routine called BMTEncrypt.
Function BTMEncrypt(text, types)
 For god = 1 To Len(text)
   If types = 0 Then
     Current$ = Asc(Mid(text, god, 1)) - god
   Else
     Current$ = Asc(Mid(text, god, 1)) + god
   End If
   Process$ = Process$ & Chr(Current$)
 Next god
 BTMEncrypt = Process$
End Function
原始评论 (3)
从 Wayback Machine 恢复