Oct 26th, 2004, 08:27 AM
#1
Thread Starter
Fanatic Member
Reverse Modulus?
I take a number (3) and do the following to it:
Num1= (3+7)%10
This gives us 10%10. The remainded of 10/10 is 0.
Now how can I work backward from this answer to get back to 3. I need to somehow "reverse" the modulus operation. This is for a simple Encryption/Decryption program. Any help appreciated.
Oct 26th, 2004, 09:55 AM
#2
You can't.
For the simple reason that 13, 23, 33, 43 and so on would all give you the same answer - 0.
(3+7)%10 = 0
(13+7)%10 = 0
(23+7)%10 = 0
(33+7)%10 = 0
(43+7)%10 = 0
I don't live here any more.
Oct 26th, 2004, 10:02 AM
#3
So you see, there are infinitely many X values for any given Y value.
Attached Images
I don't live here any more.
Oct 31st, 2004, 02:18 PM
#4
Hmmm,
If your encryption is, given Y, F(y) = (Y + (10 - Y)) Mod 10,
Then not only do you have the ultimate secure encryption, but you must also get awesome compression ratios!
It's Brilliant!
Nov 1st, 2004, 01:27 AM
#5
and impossible to decrypt afterwards!
Nov 1st, 2004, 03:03 AM
#6
No, what you actually have is a very poor hash function.
SHA is teh h@sh pwner.
Nov 1st, 2004, 04:52 AM
#7
Frenzied Member
It's something I'd never thought of to use in encryption, and it is a very nice one way encryption method, but it can be bruteforced quite easily. It really is quite nice though.
Have I helped you? Please Rate my posts.
Nov 1st, 2004, 06:36 PM
#8
Originally posted by dglienna
and impossible to decrypt afterwards!
Build it as a Webbrowser app!
Then, to decrypt, just hit the back button!
Nov 1st, 2004, 09:05 PM
#9
Fanatic Member
Originally posted by NotLKH
pathfinder
We'll meet again! You just wait!
Don't pay attention to this signature, it's contradictory.
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