pub / pastesrv

Paste service setup for paste.jayvii.de
git clone https://src.jayvii.de/pub/pastesrv.git
Home | Log | Files | Exports | Refs | README | RSS

config.php (309B)


      1 <?php
      2 
      3 /* Set password as SHA-256 string. In bash:
      4 echo "MY-SECURE-PASSWORD" | sha256sum | awk '{print $1}'
      5 */
      6 $auth_hash="PW_PLACEHOLDER";
      7 
      8 /* Dynamic salt value for the hashing process. This makes it a lot harder to
      9 guess the resulting hash and therefore URL of a paste
     10  */
     11 $salt=rand(0, getrandmax());
     12 
     13 ?>