Re: decrypt problem

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56276
interpreted = N
texte = >hi all, > >running webdna 4.5, webstar 5, mac os x > >i am using this code to encrypt user passwords when saving them to the db: > >[replace >db=/data/charlotteusers.db&eqUSERIDdatarq=[id]]PASS=[encrypt >seed=[id]][url][_pass][/url][/encrypt][/replace] > >To read them back I use this: > >[decrypt seed=[userid]][unurl][pass][/unurl][/decrypt] > >id and userid are [cart] when I save the record - This works, but >there is one encrypted password in the .db that gives me nothing >when decrypted. Anyone have any thoughts? Glenn's right, you need to url the encrypted value, not encrypt the urled value: [replace db=/data/charlotteusers.db&eqUSERIDdatarq=[id]]pass=[url][encrypt seed=[id]][_pass][/encrypt][/url][/replace] .. and you don't have to unurl it when retrieving it from the db: [search db=/data/charlotteusers.db&eqUSERIDdatarq=[id]] [founditems] [decrypt seed=[id]][pass][/decrypt] [/founditems] [/search] Just don't let them change their userid value without also doing the [replace] or you'll end up with a seed that won't work with the stored pass value. -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: decrypt problem ( Kenneth Grome 2004)
  2. Re: decrypt problem ( Glenn Busbin 2004)
  3. decrypt problem ( charles kline 2004)
  4. Re: Decrypt Problems (always include a Subject!!!) (jpeacock@univpress.com 2000)
  5. Re: Decrypt Problems (always include a Subject!!!) (dale@gmr.dresdner.net 2000)
>hi all, > >running webdna 4.5, webstar 5, mac os x > >i am using this code to encrypt user passwords when saving them to the db: > >[replace >db=/data/charlotteusers.db&eqUSERIDdatarq=[id]]PASS=[encrypt >seed=[id]][url][_pass][/url][/encrypt][/replace] > >To read them back I use this: > >[decrypt seed=[userid]][unurl][pass][/unurl][/decrypt] > >id and userid are [cart] when I save the record - This works, but >there is one encrypted password in the .db that gives me nothing >when decrypted. Anyone have any thoughts? Glenn's right, you need to url the encrypted value, not encrypt the urled value: [replace db=/data/charlotteusers.db&eqUSERIDdatarq=[id]]pass=[url][encrypt seed=[id]][_pass][/encrypt][/url][/replace] .. and you don't have to unurl it when retrieving it from the db: [search db=/data/charlotteusers.db&eqUSERIDdatarq=[id]] [founditems] [decrypt seed=[id]][pass][/decrypt] [/founditems] [/search] Just don't let them change their userid value without also doing the [replace] or you'll end up with a seed that won't work with the stored pass value. -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Kenneth Grome

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:

Help! WebCat2 bug (Ben's input) (1997) RE: WebCatalog2 for NT Beta Request (1997) Associative lookup style? + bit more (1997) [WebDNA] WebDNA and macOS 10.4 Mojave - Operational? (2018) [FoundItems] solved - thanks (1997) Roundup function? (1997) WCS Newbie question (1997) Download URL & access on the fly ? (1997) Running 2 two WebCatalog.acgi's (1996) WC2.0 Memory Requirements (1997) Lots of bounce errors (2007) RE: Problems reading files created by WC (1997) [authenticate] (1999) Protect vs Authenicate (1997) Is Web Merchant Necessary? (2000) WebDNA Challenge - Was: Why WebDNA is not popular (2002) RE: Answer: WebDelivery downloads alias, not original ? (1997) Help! WebCat2 bug (1997) Possible Bug in 2.0b15.acgi (1997) [isfile] ? (1997)