http://stackoverflow.com/questions/157938/hiding-a-password-in-a-python-script


On Tue, Sep 29, 2015 at 10:44 AM, Richard Vézina <
[email protected]> wrote:

> And consider using base64 to prevent cleartext password in trace...
>
> Sorry I didn't see you were importing getpass...
>
> Richard
>
> On Tue, Sep 29, 2015 at 10:41 AM, Richard Vézina <
> [email protected]> wrote:
>
>> import getpass
>>
>> On Mon, Sep 28, 2015 at 8:51 PM, Michael M <[email protected]> wrote:
>>
>>> On File "Setup-web2py-fedora.sh"
>>>
>>> Line 387: sudo -u apache python -c "from gluon.main import
>>> save_password; save_password(raw_input('admin password: '),443)"
>>> to
>>> Line 387: sudo -u apache python -c "from gluon.main import
>>> save_password; import getpass; save_password(getpass.getpass('admin
>>> password: '),443)"
>>>
>>> To not have chosen password in clear text.  Tested/Working.
>>>
>>> --
>>> 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].
>>> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to