Re: encrypt/decrypt password with authenticate
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41966
interpreted = N
texte = Lester, you cannot encrypt with a seed when you are using WebCats internalauthentication.you just need to use just [encrypt], the downside is you cannot decrypt it.Alain> I'm stymied.> Why won't these procedures authenticate a password encrypted and> written to a database?>>> Following a procedure outlined by Ken I came across in the archives . .> .>> I copied the users.db database and renamed it members.db> I copied MultiGroupChecker and renamed it MemberChecker> Placed both of the new files in the same folder as pages I want to> protect>>> I use this to write a username/password combo into a database.>> [append> db=members.db]user=[uppercase][user][/uppercase]&pass=[url][url][encrypt>> seed=1234][uppercase][pass][/uppercase][/encrypt][/url][/url]&groups=e-info[/append]>>> On top of pages to protect I have:> [include file=MemberChecker&groups=e-info]>> In my MemberChecker I have the following:>> [!] check for user in members.db[/!]> [showif NotFound=[lookup> db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=user¬Found=NotFound]]> [authenticate Bad User]> [/showif]>> [!] Check password of user in members.db[/!]> [showif [uppercase][password][/uppercase]![lookup> db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=[decrypt>> seed=1234][unurl][unurl]pass[/unurl][/unurl][/decrypt]¬Found=NotFound]> [authenticate Bad Password]> [/showif]>>>> To make sure I was encrypting and decrypting the password properly I> made another page with the following:>>> [text]public=Ginny+me^$1234[/text]>> [text]private=[url][url][encrypt> seed=1234][uppercase][public][/uppercase][/encrypt][/url][/url][/text]>> [text]resurrection=[decrypt> seed=1234][unurl][unurl][private][/unurl][/unurl][/decrypt][/text]>> public=[public]
> private=[private]
> resurrection=[resurrection]
>> All went well with the above test code . . .>> . . .>> I just can't get my procedures to work with authenticate . . . .> All stops at Bad Password>>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is> at: http://search.smithmicro.com/-- Alain RussellBlackpepper Interactivealain.russell@blackpepper.co.nzph. 09 520 6280-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Lester, you cannot encrypt with a seed when you are using WebCats internalauthentication.you just need to use just [encrypt], the downside is you cannot decrypt it.Alain> I'm stymied.> Why won't these procedures authenticate a password encrypted and> written to a database?>>> Following a procedure outlined by Ken I came across in the archives . .> .>> I copied the users.db database and renamed it members.db> I copied MultiGroupChecker and renamed it MemberChecker> Placed both of the new files in the same folder as pages I want to> protect>>> I use this to write a username/password combo into a database.>> [append> db=members.db]user=[uppercase][user][/uppercase]&pass=[url][url][encrypt>> seed=1234][uppercase][pass][/uppercase][/encrypt][/url][/url]&groups=e-info[/append]>>> On top of pages to protect I have:> [include file=MemberChecker&groups=e-info]>> In my MemberChecker I have the following:>> [!] check for user in members.db[/!]> [showif NotFound=[lookup> db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=user¬Found=NotFound]]> [authenticate Bad User]> [/showif]>> [!] Check password of user in members.db[/!]> [showif [uppercase][password][/uppercase]![lookup> db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=[decrypt>> seed=1234][unurl][unurl]pass[/unurl][/unurl][/decrypt]¬Found=NotFound]> [authenticate Bad Password]> [/showif]>>>> To make sure I was encrypting and decrypting the password properly I> made another page with the following:>>> [text]public=Ginny+me^$1234[/text]>> [text]private=[url][url][encrypt> seed=1234][uppercase][public][/uppercase][/encrypt][/url][/url][/text]>> [text]resurrection=[decrypt> seed=1234][unurl][unurl][private][/unurl][/unurl][/decrypt][/text]>> public=[public]> private=[private]
> resurrection=[resurrection]
>> All went well with the above test code . . .>> . . .>> I just can't get my procedures to work with authenticate . . . .> All stops at Bad Password>>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is> at: http://search.smithmicro.com/-- Alain RussellBlackpepper Interactivealain.russell@blackpepper.co.nzph. 09 520 6280-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Alain Russell
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:
[WebDNA] Grep everything and replace with asterisks? (2010)
E-Mail (1998)
Opening 'order file'. (1999)
b12 cannot limit records returned and more. (1997)
re:WebCatalog and Filemaker (1996)
Showif Context combined with Search (1997)
Limiting user access to .tmpl files (1997)
Credit card processing - UK (1997)
Mime Headers for Mail (1998)
Format question WC Mac f3 (1997)
Mozilla/4. and Browser Info.txt (1997)
[WebDNA] Copy a whole row from a db to another db or table (2017)
[WebDNA] [OT] thanks. (2009)
[WebDNA] Trying to search for two values within one criteria... (2016)
Post size Limit? (1998)
cart ID (1998)
All questions are welcome on this list (1997)
[OT] MacOs IE5 topmargin and leftmargin bug (2000)
WebCat2 - [format thousands] (1997)
Anyone have a Contact Management module? (1999)