RRC (rrc) wrote,
RRC
rrc

insecure encryption

Would you entrust your password database to this level of security?

function encrypt(inputTxt)
      'ASCII codes are 48-57 is 0 to 9 (10)
      '56-90' is A to Z (26)
      '97-122' is a to z (26)
      '62 characters to encrypt
      outputTxt = ""
      for i = 1 to len(inputTxt)
              'get each letter
              letter = mid(inputTxt,i,1)
              'use the length of the word to create a number
              jump = 1 + len(inputTxt) - i
              'move forward jump number of characters in ascii
              ANSIval = Asc(letter) + jump;
              newVal = Chr(ANSIval)
              'write the word out backwards
              outputTxt = newVal & outputTxt
      next
      encrypt = escape(outputTxt)
end function

No, I thought not...

Sigh

Tags: encryption, fail, security, work
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 5 comments