Commit 07d94773 authored by stimpy's avatar stimpy

fixed pw generation via cli

parent 745b3569
......@@ -4,7 +4,7 @@
echo "Commandline usage: ". $argv[0] ." <password>\n\n";
} else {
echo "\nPlease save this string as password to your config.inc.php:\n";
echo hash( 'sha256', hash( 'sha256', $argv[1] ) ) ."\n\n";
echo hash( 'sha256', hash( 'sha256', base64_encode( $argv[1] ) ) ) ."\n\n";
}
} else {
?>
......
......@@ -4,7 +4,7 @@
echo "Commandline usage: ". $argv[0] ." <password>\n\n";
} else {
echo "\nPlease save this string as password to your config.inc.php:\n";
echo hash( 'sha256', hash( 'sha256', $argv[1] ) ) ."\n\n";
echo hash( 'sha256', hash( 'sha256', base64_encode( $argv[1] ) ) ) ."\n\n";
}
} else {
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment