By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,827 Members | 813 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,827 IT Pros & Developers. It's quick & easy.

Very simple encryption

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> 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?

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com/blogs/mickey
Nov 16 '05 #2

P: n/a
Simple to use and simple to code.

Doesnt have to be complex encryption.

Regards,

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

P: n/a
Steven Blair <st**********@btinternet.com> wrote:
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...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4

P: n/a
Yeah Jon,

That was my Plan B if I couldnt get any other ideas lol

Regards,

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.