It is bad policy for you to generate a password and give it to customers. 

You should generate a one time token and allow your user to use the token 
to set his own password using web2py. Web2py automatically stores it 
encrypted using pbkdf2 + sha512. 

hashlib is not good enough for passwords because vulnerable to timing 
attacks.

Massimo

On Wednesday, 29 May 2019 22:43:28 UTC-7, Константин Комков wrote:
>
> I need to generate password and
> print it for entrant and then take hash from password for writing to 
> database. But that program work on Windows and was written by delphi. Last 
> versions delphi have sha512 and pbkdf2 library but not our. Can you take 
> link by .dll file of the library for use it in delphi? There is another way 
> I can generate many password and hash use web2py write it to database and 
> then give entrant. But for security it is nonsense. 
>
> чт, 30 мая 2019 г., 2:26 Carlos Costa <[email protected]>:
>
>> If you can use web2py itself for this task, dot it like this:
>> hash = CRYPT()('text to hash')[0]
>>
>> Em qua, 29 de mai de 2019 às 19:05, João Matos <[email protected]> 
>> escreveu:
>>
>>> I use Python's hashlib module. It contains pbkdf2.
>>>
>>> segunda-feira, 27 de Maio de 2019 às 12:13:54 UTC+1, Константин Комков 
>>> escreveu:
>>>>
>>>> Can somebody told about free library for windows (.dll) which can 
>>>> generate hash of password like web2py (pbkdf2 + sha512)?
>>>>
>>> -- 
>>> 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 [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/8155e38e-8a25-479f-b8b8-73dc31a6d0a1%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/web2py/8155e38e-8a25-479f-b8b8-73dc31a6d0a1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> At.
>>
>> Carlos J. Costa
>> --------------------------------------------------------------
>> Cientista da Computação - Esp. Gestão em Telecom
>>
>> -- 
>> 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/s-H7ExPpVAI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/CAGsD4NyYpkgJDQbPWxhmUm9Am7zuYYnWpCEhqvWxUhL%2BGwmqxQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/web2py/CAGsD4NyYpkgJDQbPWxhmUm9Am7zuYYnWpCEhqvWxUhL%2BGwmqxQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c469afcc-516c-4a56-a57d-f28bfd56ffbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to