Re: [WebDNA] Encrypted password issue
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103201
interpreted = N
texte = Kenneth Grome wrote:> I should be able to login when I encrypt a password with a > seed value in the database, right?> > I must be doing something wrong because I'm not able to > login. I encrypt the password like this when a new user > enters it into the register form:> > [append db=xxx.db]pass=[url][encrypt seed=xxx][pass]> [/encrypt][/url][/append]> > And then I encrypt the pass value from my login form before > using it in my search string like this:> > [search db=xxx.db&eqpassdatarq=[url][encrypt seed=xxx][pass]> [/encrypt][/url]]> > So why does the login fail?> > Sincerely,> Ken Grome[encrypt seed=] uses an algorithm that creates differentvalues for each use.. but can extract the starting valuesfrom the different encrypted values.This means however that what your search value is is not whatis stored in the database. You can use encrypt without theseed value I think.Alternatively, you could create a search that finds all recordsthat equal the username,then do a showif match after decrypting all the pass values.[search.. findall_usernames] [showif [url][decrypt seed=xxxx][unurl][db_value][/unurl][/decrypt][/url]=[url][pass][/url]] This is the right user. [/showif][/search]Donovan-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Associated Messages, from the most recent to the oldest:
Kenneth Grome wrote:> I should be able to login when I encrypt a password with a > seed value in the database, right?> > I must be doing something wrong because I'm not able to > login. I encrypt the password like this when a new user > enters it into the register form:> > [append db=xxx.db]pass=
[url][encrypt seed=xxx][pass]> [/encrypt][/url][/append]> > And then I encrypt the pass value from my login form before > using it in my search string like this:> > [search db=xxx.db&eqpassdatarq=
[url][encrypt seed=xxx][pass]> [/encrypt][/url]]> > So why does the login fail?> > Sincerely,> Ken Grome[encrypt seed=] uses an algorithm that creates differentvalues for each use.. but can extract the starting valuesfrom the different encrypted values.This means however that what your search value is is not whatis stored in the database. You can use encrypt without theseed value I think.Alternatively, you could create a search that finds all recordsthat equal the username,then do a showif match after decrypting all the pass values.[search.. findall_usernames] [showif
[url][decrypt seed=xxxx]
[unurl][db_value][/unurl][/decrypt][/url]=
[url][pass][/url]] This is the right user. [/showif][/search]Donovan-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat2 beta 11 - new prefs ... (1997)
Webcatalog Future?!? (2000)
OS X and Emailer (2002)
Dark Horse Comics success story (1997)
two of the same named db's open at once (1998)
re: Large databases in WebCat (1997)
Bad creator codes which cause access denied error message (1997)
Further on formula.db failure to calculate shipCost (1997)
How can I Add several Items into the cart at once? (1997)
Tried installing Windows beta with no success... (2000)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Any limit to [include] (1997)
using cookies to prevent access (2000)
How is it done? (1998)
WC 4.0 (2000)
RE: Error: template (1997)
[subtotal] and others (1997)
PCS Emailer's role ? (1997)
Re:multiple digests, please stop (1997)
Navigator 4.01 (1997)