Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 11 MAY 2010 10:52:24AM John Bouley wrote:

I have written an Encryption routine for AREV and seems to encrypt/decrypt just fine but I would like a second opinion.

Can anyone comment on the viability of this code? Thanks.

Seed=someseedvalue

   STATUS()=VALID$
   RETURN_DATA=ANS
   BEGIN CASE
   CASE CONV=ICONV'
      ansLen=len(ans)
      return_Data='
      for i=1 to ansLen
         xorVal1=seq(ansi,1)
         xorVal2=seq(seedmod(i,len(seed))+1,1)
         tempString=bitxor(xorVal1, xorVal2)
         tempString=oconv(tempString,"MX")
         if len(tempString)=1 then tempString=0" : tempString
         return_Data := tempString
       next i
   CASE CONV=OCONV'
      ansLen=len(ans) / 2
      Return_Data='
      for i=1 to ansLen
         xorVal1= iconv(ans(2*i)-1,2,"MX")
         xorVal2=seq(seedmod(i, len(seed))+1,1)
         tempString=bitxor(xorVal1,xorVal2)
         return_Data := char(tempString)
      next i
   END CASE

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/381d57ea635e27e3852577200051b3a8.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1