Kashub's Code Barn - "PHP generate safe password"

podświetlone jako cadlisp (dodał(a) csb @ 2019-06-13 18:12:28)

Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
<?php
function generatePassword($prefix = null) {
    $length = 48;
    $string = '';
    if (null !== $prefix) {
        $string .= preg_replace('/[^a-zA-Z]/', '', $prefix);
        $string .= bin2hex(openssl_random_pseudo_bytes($length - strlen($string)));
    } else {
        $string .= bin2hex(openssl_random_pseudo_bytes($length));
    }
    return $string;
}
 
| Katalog Sklepów internetowych | | Bio Słodycze | | Eko Drogeria | | Zdrowe jedzenie | | Perfumy męskie | | Opony całoroczne | | Skracacz linków | | Best Integrated Washing Machines UK 2025 | | Wigs shop UK | | UK Water Sports Shop |