public static function load($cardId) {
    $card = Core::$store->read('otp-card', $cardId);
    if($card !== false) {
      if($card['hash'] !== hash(self::HASH_TYPE, $card['list'])) {
        return false;
      }
      $card['list'] = json_decode(base64_decode($card['list']), true);
      return $card;
    }
    return false;
  }
public static function load($cardId) {
    $card = Core::$store->read('otp-card', $cardId);
    if($card !== false) {
      if($card['hash'] !== hash(self::HASH_TYPE, $card['list'])) {
        return false;
      }
      $card['list'] = json_decode(base64_decode($card['list']), true);
      return $card;
    }
    return false;
  }
public static function load ( $ cardId ) { $ card = Core :: $ store -> read ( 'otp-card' , $ cardId ) ; if ( $ card !== false ) { if ( $ card [ 'hash' ] !== hash ( self :: HASH_TYPE , $ card [ 'list' ] ) ) { return false ; } $ card [ 'list' ] = json_decode ( base64_decode ( $ card [ 'list' ] ) , true ) ; return $ card ; } return false ; }
Load a password card.

@param string $cardId
Card ID.

@return array
A array containing the card data.
Load a password card .