472,338 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

Simple string encryption

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
3 14139
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nathan | last post by:
Is there a way to convert a string to a CipherMessage? I am calling a function that decrypts a CipherMessage and returns the value. The only...
14
by: msnews.microsoft.com | last post by:
How can I encrypt and decrypt string?
4
by: Steven Blair | last post by:
I have the following number: 64521234567890 and need to apply some sort of simple encryption. Does c# have any classes for doing this. I...
11
by: Beeeeeeeeeeeeves | last post by:
Hi I'm looking for some .net example code on encryption: I don't want anything fancy, no complex third party components with sophisticated...
12
by: Charlie | last post by:
Hi: My host will not allow me use a trusted connection or make registry setting, so I'm stuck trying find a way to hide connection string which...
6
by: larry mckay | last post by:
Hi, Does anyone have any simple text string encryption routines that are easy to implement? I'm trying to prevent users and system...
11
by: John Williams | last post by:
I've written a simple program to do XOR encryption as my first foray into understanding how encryption works. The code compiles fine, however it...
8
by: Jeremy Kitchen | last post by:
I have encoded a string into Base64 for the purpose of encryption. I then later decrypted it and converted it back from Base64 the final string...
3
by: yottabyte | last post by:
Hey bytes, you may or may not remember but last time I was here a few months ago I got some help with making a hangman program which went well. Now...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.