This file contains 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 kiss_password( $entropy_level = 4, $length = 16 ) { | |
/** CC0 1.0 Universal License **/ | |
/** Created: 2017 by Stefano Kocka **/ | |
/** Purpose: Generates read-friendly, quoted_printable safe, console safe and entropy level based password **/ | |
/** Caution: This function does not generate cryptographically secure values, | |
and should not be used for cryptographic purposes. **/ | |
/** Note: If you expect short as possible output | |
with all 4 types of entropy then min $length=4 is recommended. | |
For max there is no limit. **/ |