
Running the password reset script for my Raspberry Pi relay controller
Note that the script has to be: 1. Run From the website's root directory. The hashed credentials are written to the creds file using a relative path - tmpdir/creds.txt 2. Run as root (sudo is fine) Ensure the script has the permission of 700 and is owned by root. This is a security precaution. The password reset script is a PHP script that hashes the entered username and password with PHP's password_hash function. The hash values are then stored in plain text files under the tmpdir folder. Full code available here: https://github.com/rthennan/RPiContro... Demo of the actual controller: • Controlling multiple relays with Rasp...