This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://gist.github.com/BobbyRyterski/7a511b96ece47655b17d | |
# based on http://stackoverflow.com/q/14471692 | |
readonly BASE62=($(echo {0..9} {a..z} {A..Z})) | |
base62_encode() { | |
local out= | |
for i in $(bc <<< "obase=62; $1"); do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function randomPassword( $len = 10, $ucfirst = true, $spchar = true ){ | |
/* Programmed by Christian Haensel | |
* [email protected] | |
* http://www.chftp.com | |
* | |
* Exclusively published on weberdev.com. | |
* If you like my scripts, please let me know or link to me. | |
* You may copy, redistribute, change and alter my scripts as | |
* long as this information remains intact. |