I must be misunderstanding something, because that is what I thought I just showed.
hashed_password = str(CRYPT(key="pbkdf2(1000,20,sha512):whatever-your-hash-string-is")(plain_text_password)[0]) "whatever-your-hash-string-is needs" to be the same as what you're assigning to auth.settings.hmac_key in db.py hashed_password should then match what is in auth_user.password -Jim On Thursday, August 18, 2022 at 2:34:45 PM UTC-5 lucas wrote: > ok, that sets up the web2py environment. i'm asking how to reproduce or > generate the hashed key from regular text within a separate shell script. > lucas > > On Thursday, August 18, 2022 at 8:53:38 AM UTC-4 Jim S wrote: > >> It should be the same as auth.settings.hmac_key, probably set in db.py >> >> auth.settings.hmac_key = ( >> "sha512:whatever-your-has-string-is" # before define_tables() >> ) >> >> >> >> On Thu, Aug 18, 2022 at 7:44 AM lucas <sjlu...@gmail.com> wrote: >> >>> but how do you generate the hash string from the regular text string? >>> >>> On Thursday, August 18, 2022 at 8:40:35 AM UTC-4 Jim S wrote: >>> >>>> Here is what I'm using: >>>> >>>> password = str(CRYPT(key= >>>> "pbkdf2(1000,20,sha512):whatever-your-hash-string-is")(unhashed)[0]) >>>> >>>> On Wednesday, August 17, 2022 at 9:01:32 PM UTC-5 lucas wrote: >>>> >>>>> hello one and all, >>>>> in linux/bash script code, not web2py interface, how do i take a >>>>> regular string and convert it into the password that is stored in the >>>>> password in the auth_user table under web2py version 2.22.5? >>>>> thank you in advance, lucas >>>>> >>>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "web2py-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/web2py/801jh-wneL0/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> web2py+un...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/web2py/2b0bd3f4-5dbc-49b5-b40e-e50e616b9d1dn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/web2py/2b0bd3f4-5dbc-49b5-b40e-e50e616b9d1dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8b4e05fe-0087-46e9-b645-6027886b79e6n%40googlegroups.com.