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

Simple string encryption

P: n/a
How would I go about simple encryption of a string? The user info is stored
in a file and I just wanted to encrypt the passwords and usernames. It
doesn't need to be complex or even that difficult to decrypt as it is only
about 5 users on a small intranet. The database user table controls the
rights individual client apps have but it is just to give some protection to
the local user lists for the client apps.

Thanks in advance.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Myrilath wrote:
How would I go about simple encryption of a string? The user info is
stored in a file and I just wanted to encrypt the passwords and usernames.
It doesn't need to be complex or even that difficult to decrypt as it is
only about 5 users on a small intranet. The database user table controls
the rights individual client apps have but it is just to give some
protection to the local user lists for the client apps.

Thanks in advance.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004


A fast MD5 algorithm exists at :

http://www.twmacinta.com/myjava/fast_md5.php#download

if you are just wanting to make sure a set of stupid people cant view each
others usernames and passwords this should suffice...

--
# Random Comment...

Please encrypt emails with my GPG encryption key, found at :
http://switchblade.no-ip.org/gpg.
Jul 17 '05 #2

P: n/a
I've heard of stuff like "rot-13" - very simple - you just add 13 to the
ascii value of each char, then to decrypt, subtract 13 from each char

"Myrilath" <my******@yahoo.com> wrote in message
news:40********@news.iprimus.com.au...
How would I go about simple encryption of a string? The user info is stored in a file and I just wanted to encrypt the passwords and usernames. It
doesn't need to be complex or even that difficult to decrypt as it is only
about 5 users on a small intranet. The database user table controls the
rights individual client apps have but it is just to give some protection to the local user lists for the client apps.

Thanks in advance.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
Jul 17 '05 #3

P: n/a
On Tue, 1 Jun 2004 18:05:03 -0400, Hal Rosser wrote:
I've heard of stuff like "rot-13" - very simple - you just add 13 to
the ascii value of each char, then to decrypt, subtract 13 from each
char


rot-13 is much too easy to break on modern computers. I'd recommend
using at least rot-39, or even rot-65 if your cpu is up to it.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.