Skip to content

Instantly share code, notes, and snippets.

@liukuan
liukuan / hash.php
Created March 28, 2013 04:21 — forked from anonymous/hash.php
<?php
/**
* 加密 hash,生成发送给用户的 hash 字符串
*
* @param array $hash_data
* @param string $hash_key
* @return string
*/
function encode_hash($hash_data, $hash_key = false)