public static function create($length = 6, $num = 32) {
    $card['list'] = array();
    for($i = 0; $i < $num; $i++) {
      $card['list'][$i]   = phpsecRand::str($length);
      $card['usable'][$i] = true;
    }

    $card = self::save($card);

    return $card['id'];
  }
public static function create($length = 6, $num = 32) {
    $card['list'] = array();
    for($i = 0; $i < $num; $i++) {
      $card['list'][$i]   = phpsecRand::str($length);
      $card['usable'][$i] = true;
    }

    $card = self::save($card);

    return $card['id'];
  }
public static function create ( $ length = 6 , $ num = 32 ) { $ card [ 'list' ] = array ( ) ; for ( $ i = 0 ; $ i < $ num ; $ i ++ ) { $ card [ 'list' ] [ $ i ] = phpsecRand :: str ( $ length ) ; $ card [ 'usable' ] [ $ i ] = true ; } $ card = self :: save ( $ card ) ; return $ card [ 'id' ] ; }
Create a list of 64 pre shared one-time-passwords,
or a so called password card.

This differs from phpsecOtp::generate() because passwords generated by
this function is saved permanent and can be validated on a later time.
Create a list of 64 pre shared one - time - passwords or a so called password card .