Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefano Kocka MINORITYmaN

  • EU
View GitHub Profile
@MINORITYmaN
MINORITYmaN / kiss_password.php
Last active Aug 13, 2020
keep it simple stupid password generator function in php - read-friendly, quoted_printable safe, console safe and entropy level based password generation
View kiss_password.php
<?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. **/
You can’t perform that action at this time.