# Thread: How do you get the inverse of this transformation?

1. Senior Member
Join Date
Apr 2012
Posts
115
Rep Power
0

## How do you get the inverse of this transformation?

Ok so I'm doing a programming exercise which gives me a method of encryption, one of the steps is to +7 then mod 10

besides from the encryption application itself I must also decrypt... but surely this is impossible.

mod provides a many-to-one relationship for example (3 mod 10 = 3) and (13 mod 10 = 3) so information is lost making it impossible to decrypt (atleast thats what my common sense says)

unless I've missed something, maybe I must get additional information from the user but then what would that be and how would it be applied?

how can you reverse that kind of transformation in the simplest way?

thanks

2. Moderator
Join Date
Feb 2009
Location
New Zealand
Posts
4,712
Rep Power
14

## Re: How do you get the inverse of this transformation?

Yes, your common sense is correct. The step can only possibly be reversed if there were 10 or fewer symbols being encrypted.

But if that step occurred as *part* of an encryption process it is quite possible that the process as a whole can be reversed.

#### Posting Permissions

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