bug_x

导航

 
function fue($hash,$times) {
	// Execute the encryption(s) as many times as the user wants
	for($i=$times;$i>0;$i--) {
		// Encode with base64...
		$hash=base64_encode($hash);
		// and md5...
		$hash=md5($hash);
		// sha1...
		$hash=sha1($hash);
		// sha256... (one more)
		$hash=hash("sha256", $hash);
		// sha512
		$hash=hash("sha512", $hash);

	}
	// Finaly, when done, return the value
	return $hash;
}
posted on 2016-02-04 17:48  bug_x  阅读(245)  评论(0编辑  收藏  举报