|
-
Jun 3rd, 2008, 01:53 AM
#1
Thread Starter
Lively Member
[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?
-
Jun 3rd, 2008, 04:45 AM
#2
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.
-
Jun 3rd, 2008, 04:54 AM
#3
Re: Encryption problem
 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.
-
Jun 5th, 2008, 02:25 AM
#4
Thread Starter
Lively Member
Re: Encryption problem
Thanks for your rpl
leinad31
Can you tell me more about XOr encryption?
-
Jun 5th, 2008, 02:27 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|