All Data Structures Namespaces Files Functions Variables Pages
gameencrypt.php File Reference

Go to the source code of this file.

## Functions

| game_encrypt ($txt, $key)
| game_decrypt ($txt, $key)
| game_key ($txt, $encrypt_key)
| game_encode ($array)

## Function Documentation

game_decrypt | ( |  | $txt,
|  |  | $key
| ) |  |

Game 解密函数

Parameters

  string | 加密后的字串
  string | 私有密匙(用于解密和加密)

Returns
  string 字串经过私有密匙解密后的结果

Definition at line 44 of file gameencrypt.php.

game_encode | ( |  | $array | ) |

Game 信息(数组)编码函数

Parameters

  array | 待编码的数组

Returns
  string 数组经编码后的字串

Definition at line 103 of file gameencrypt.php.

game_encrypt | ( |  | $txt,
|  |  | $key
| ) |  |

Game 加密函数

Parameters

  string | 等待加密的原字串
  string | 私有密匙(用于解密和加密)

Returns
  string 原字串经过私有密匙加密后的结果

Definition at line 11 of file gameencrypt.php.

game_key | ( |  | $txt,
|  |  | $encrypt_key
| ) |  |

Game 密匙处理函数

Parameters

  string | 待加密或待解密的字串
  string | 私有密匙(用于解密和加密)

Returns
  string 处理后的密匙

Definition at line 73 of file gameencrypt.php.