Public feed #889482

NULLCryptV2

public php v1 · immutable
Raw Edit
·published 2008-02-02 23:05 UTC
rendered paste body
<?php	/*	 * 	 * 	NULLCrypt V2	 * 	Designed by Josh Sandlin	 * 		<josh@thenullbyte.org>	 * 	 * 	Magic contained in a php function	 * 	 */	//creates a salt for the hashing algo... 	function get_salt() {		return strrev(substr(hash('whirlpool', rand(1, rand(2, 9999999999))), rand(1, 10), rand(11, 20)));	}		//originally called nullcrypt(); .. but what fun is that ?	function magic($salt, $pass) {		 return strrev(substr(hash("whirlpool", hash("sha512", hash("sha256", hash("sha1", hash("md5", hash("whirlpool", hash("sha512", base64_encode($salt . $pass)))))))), 96, 125));			}		//usages	//$salt = get_salt();	//$pass = $_GET['p'];	//echo magic($salt, $pass);?>