Very simple encryption

  • Thread starter Thread starter Steven Blair
  • Start date Start date
S

Steven Blair

I have the following number:

64521234567890

and need to apply some sort of simple encryption.

Does c# have any classes for doing this. I cant use 3DES or anything as
complex as.
The size of the string cannot increase either (no more than 14 chars)
and must be numeric only.

Regards,

Steven
 
and need to apply some sort of simple encryption.

Define simple.

Simple to use?
Simple to code?
Simple to decrypt?
Simple to crack?
Low-cost to encrypt/decrypt?
 
Simple to use and simple to code.

Doesnt have to be complex encryption.

Regards,

Steven
 
Steven Blair said:
Simple to use and simple to code.

Doesnt have to be complex encryption.

Unfortunately the bounds of "same size, same range of characters" does
complicate things quite a lot. I'll see whether I can come up with
anything, but it really is a bit of a pain.

I mean, you could do the *really* trivial thing where you take a key of
the same length and just (for each character) add the key to the
plaintext, wrapping round from '9' to '0'. To decrypt you just subtract
the key from the cyphertext, wrapping from '0' back to '9' if you see
what I mean.

It hideously insecure, but it would work in a pinch...
 
Back
Top