Password generation for the IPython notebook.
Generate hashed password and salt for use in notebook configuration.
In the notebook configuration, set c.NotebookApp.password to the generated string.
Parameters : | passphrase : str
algorithm : str
|
---|---|
Returns : | hashed_passphrase : str
|
Examples
In [1]: passwd(‘mypassword’) Out[1]: ‘sha1:7cf3:b7d6da294ea9592a9480c8f52e63cd42cfb9dd12’
Verify that a given passphrase matches its hashed version.
Parameters : | hashed_passphrase : str
passphrase : str
|
---|---|
Returns : | valid : bool
|
Examples
In [1]: from IPython.lib.security import passwd_check
Out[2]: True
Out[3]: False