【パスワード用】疑似乱数生成ツール


桁数:


アルゴリズム(PHP)

  function GetRand( int $len = 32 ) {

    $bytes = openssl_random_pseudo_bytes( $len );
    $str = bin2hex( $bytes );

    $usestr = '1234567890abcdefghijklmnopqrstuvwxyz';
    $str2 = substr( str_shuffle( $usestr ), 0, 12 );

    return substr( str_shuffle( $str . $str2 ) , 0, -12 );

  }

Copyright © 2021 ActiveTK. All rights reserved.