Skip to content

Instantly share code, notes, and snippets.

View ricks03's full-sized avatar

Rick Steeves ricks03

View GitHub Profile
@jfinstrom
jfinstrom / GenerateUsermanPasswordHash.php
Created January 25, 2023 19:41
Generate a password hash for manual update of a FreePBX Userman user
#!/usr/bin/env php
# Copyright (c) 2023 James Finstrom. All rights reserved.
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Usage: ./GenerateUsermanPasswordHash.php Passw0rdString
#
<?php
if(empty($argv[1]){
echo "You must provide a string to hash" . PHP_EOL
return 1;