Skip to content

Instantly share code, notes, and snippets.

Stefano Kocka MINORITYmaN

  • EU
Block or report user

Report or block MINORITYmaN

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MINORITYmaN
MINORITYmaN / kiss_password.php
Created Mar 14, 2018
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 ) {
/** MIT License **/
/** Copyright (c) 2017 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.