🔒 Locked
Looking for a simple string [en|de]cryption API...
Advertisement
Original Post
You don''t need decryption function. The standard way to store
crypted password is.
1. Create hash from the password. (Using for example MD5 method)
2. Store this hash in registry or setting file.
When user enters its password create hash using same method
and compare with stored one.
Hashing algorithm guarantee that password cannot be recovered
from hash.
I think you can find algorithm sources somewhere in unix or
even windows public sources.
DLife
crypted password is.
1. Create hash from the password. (Using for example MD5 method)
2. Store this hash in registry or setting file.
When user enters its password create hash using same method
and compare with stored one.
Hashing algorithm guarantee that password cannot be recovered
from hash.
I think you can find algorithm sources somewhere in unix or
even windows public sources.
DLife
Yes, hash is the way to go just like DLife explained. You can also do your own hash-function:
Something like that, I just came up with the algo above and I''m not that sure if it''s good. But it works
. I suggest using passwords longer than 4 characters, but less than 32.
|
Something like that, I just came up with the algo above and I''m not that sure if it''s good. But it works
My apologies; I was not clear on what I wanted to do. You guys are quite right in that it''s straight forward to hash up the password and compare it to the hashed name that the user later enters.
What has me stumped is thatI want to be able to recover the password. I want my program to be able to "remember" a password that the user has entered so [s]he does not have to re-enter it each time.
For example; part of one of my applications involves a webcam so I want to me able to remember the ftp password where the cam is supposed to upload the image. For that matter I''d also like to encrypt the ftp site and username so that only my program knows about it.
If you have any ideas I''d appreciate it!
Thanks!
What has me stumped is thatI want to be able to recover the password. I want my program to be able to "remember" a password that the user has entered so [s]he does not have to re-enter it each time.
For example; part of one of my applications involves a webcam so I want to me able to remember the ftp password where the cam is supposed to upload the image. For that matter I''d also like to encrypt the ftp site and username so that only my program knows about it.
If you have any ideas I''d appreciate it!
Thanks!
It depends on how secure you want it as to how complicated you want to make it. A very simple method would be to just XOR each character with a know byte to make it unreadable, then XOR again to get back to the original. You can create your own method of this for a simple encryption.
You can also get more complicated encryption systems using a bit more mathematics. The TEA algorithm comes to mind, just do a search in google or something and you should get loads of examples.
You can also get more complicated encryption systems using a bit more mathematics. The TEA algorithm comes to mind, just do a search in google or something and you should get loads of examples.
quote:
Original post by MauMan
My apologies; I was not clear on what I wanted to do. You guys are quite right in that it''s straight forward to hash up the password and compare it to the hashed name that the user later enters.
What has me stumped is thatI want to be able to recover the password. I want my program to be able to "remember" a password that the user has entered so [s]he does not have to re-enter it each time.
For example; part of one of my applications involves a webcam so I want to me able to remember the ftp password where the cam is supposed to upload the image. For that matter I''d also like to encrypt the ftp site and username so that only my program knows about it.
If you have any ideas I''d appreciate it!
Thanks!
Here''s some html/VBScript (similar to VB) for doing it:
|
Be
SIt''s Da BOMB Baby!!!
OUCH. This board doesn't like my tables and scripting. Edit my message with the html in the box and then just copy/paste that code into a .htm file in notepad and save it.
HEY MOD or STAFF: Can somebody delete that reply for me?? The reply and topic ID's are as follows:
reply_id=186730&topic_id=36847
Thanks,
Philip
B e
S
It's Da BOMB Baby!!!
Edited by - wrenhal on January 11, 2001 1:20:55 PM
HEY MOD or STAFF: Can somebody delete that reply for me?? The reply and topic ID's are as follows:
reply_id=186730&topic_id=36847
Thanks,
Philip
B e
S It's Da BOMB Baby!!!
Edited by - wrenhal on January 11, 2001 1:20:55 PM
quote:
Original post by wrenhal
OUCH. This board doesn''t like my tables and scripting. Edit my message with the html in the box and then just copy/paste that code into a .htm file in notepad and save it.
HEY MOD or STAFF: Can somebody delete that reply for me?? The reply and topic ID''s are as follows:
reply_id=186730&topic_id=36847
Thanks,
Philip
B eS
It''s Da BOMB Baby!!!
Edited by - wrenhal on January 11, 2001 1:20:55 PM
Thanks to whomever removed that odd reply. Now that it''s cleared up in here, have you had a chance to try this MauMan?
Be
SIt''s Da BOMB Baby!!!
I ended up using some code from flipcode.com
(http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00000589&forum=general&id=-1 )
It was simple and works well. I''m also encypting the site name and user name for a little more security. At John Hattan''s suggestion I''m also using non-obvious key names.
In any event it''s probably overkill as such packages as Cam2TheWeb store all of this stuff clear text :-(
Thanks for all the suggestions!
Bryan
(http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00000589&forum=general&id=-1 )
It was simple and works well. I''m also encypting the site name and user name for a little more security. At John Hattan''s suggestion I''m also using non-obvious key names.
In any event it''s probably overkill as such packages as Cam2TheWeb store all of this stuff clear text :-(
Thanks for all the suggestions!
Bryan
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement