Results 1 to 5 of 5

Thread: [RESOLVED] Encryption problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Resolved [RESOLVED] Encryption problem

    I have one encryption method which encrypt simple text to unreadable format but there is one problem with this encryption method if i run that method twice it will decrypt the encrypted string. Is there any way so that i can know if string is already encrypted?

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: Encryption problem

    Just a thought...I don't know how you are doing it. Add a 1 or 0 to the front of the Encrypted text to check and ignore it when flipping back and forth.

    EncryptedText = 1 & EncryptedText

    If mid(EncryptedText,1,1) = 1 then Encrypted else not Encrypted

    Then get the text Mid(EncryptedText,2,Len(EncryptedText -1))

    Soemthing like that anyway.

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Encryption problem

    Quote Originally Posted by xor83
    I have one encryption method which encrypt simple text to unreadable format but there is one problem with this encryption method if i run that method twice it will decrypt the encrypted string. Is there any way so that i can know if string is already encrypted?
    That's how XOr encrytion is supposed to work. Might as well determine how come it was called twice, or why it was called for decryption when encryption was intended.

    In short, check processing flow. It's a logical error.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Re: Encryption problem

    Thanks for your rpl

    leinad31

    Can you tell me more about XOr encryption?

  5. #5
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: [RESOLVED] Encryption problem


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width