Skip to content

(Optional) Password Protection

Mark Keller edited this page Feb 8, 2019 · 2 revisions

To password protect ExploSig:

  1. Use the argon2_cffi Python package to generate a hash of the desired password:

    $ pip install argon2-cffi==19.1.0
    $ python 
    >>> from argon2 import PasswordHasher
    >>> ph = PasswordHasher()
    >>> ph.hash("s3kr3tp4ssw0rd")
    '$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ'
    
  2. Add the following line to the .env file:

    EXPLOSIG_PASSWORD_HASH=$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ