Return to Snippet

Revision: 6528
at November 6, 2009 09:11 by Sn0opy


Updated Code
function encryptpass($password) {
	if(!empty($password)) {
		$key = 	'oYenhuobE577FzAixKPe9qQkptHbFx'.
			'uoC0PcdPfNuQGnELzvI3FGVWl27k3v'.
			'mqoymbRV09QWwdmq6c7AWysFP43LtM'.
			'x8MDriq73T2PVJBGiyxQUxe4viLiHQ'.
			'In4buglQcq3024DCw9sVFO0mFVe6Jq'.
			'cPUuCjzYWyfgaSe97H6DBLIvAY9qbN'.
			'xozZtZ0Id9Coy7daJDfx4w8BsyfFNr';
		
		$hash1 = sha1(md5($key));
		$hash2 = sha1(md5($password));
		$password = md5(sha1($hash1 . $hash2));
		
		return $password;
	}
}

Revision: 6527
at October 27, 2009 15:08 by Sn0opy


Updated Code
function encryptpass($password) {
	if(!empty($password)) {
		$key = 	'KütNcFw<v5&[email protected]+n<JT*;Hb6?WkZVsY1ä9/(6QH'.
			'7]B=)4{ö_>sSqUu+oKmOZ,+/(&eE5/ZSLNj5v&V}'.
			'(3&z_<36L&w�,Nj>@e([GWgV*-c1C(u6H64DQ*Z�'.
			'w4YDKJ6k)br8/;&i8Jq/l*(%eüfsKwmGrgrdteJ%'.
			'bwGwHV>&r(�4n%M1y83m3v:P{]R&J0#-9rg_&x_N'.
			'PY5#Pw&4MCG54=J()mpüZd];�fmsFmD5vb3iä4Se'.
			'�]e%jsi(7,{z*%jGPmbyjL%!!�2C#&(40(K#?4e1'.
			'BcayYI7ü%$Av<äJ5Aä@V(GMX$8+>OUn);?Ap4Cf2';
		
		$hash1 = sha1(md5($key));
		$hash2 = sha1(md5($password));
		$password = md5(sha1($hash1 . $hash2));
		
		return $password;
	}
}

Revision: 6526
at June 18, 2008 10:16 by Sn0opy


Updated Code
function decryptpass($password) {
	if(!empty($password)) {
		$key = 	'KütNcFw<v5&[email protected]+n<JT*;Hb6?WkZVsY1ä9/(6QH'.
			'7]B=)4{ö_>sSqUu+oKmOZ,+/(&eE5/ZSLNj5v&V}'.
			'(3&z_<36L&wÜ,Nj>@e([GWgV*-c1C(u6H64DQ*ZÄ'.
			'w4YDKJ6k)br8/;&i8Jq/l*(%eüfsKwmGrgrdteJ%'.
			'bwGwHV>&r(Ö4n%M1y83m3v:P{]R&J0#-9rg_&x_N'.
			'PY5#Pw&4MCG54=J()mpüZd];ÄfmsFmD5vb3iä4Se'.
			'Ö]e%jsi(7,{z*%jGPmbyjL%!!Ä2C#&(40(K#?4e1'.
			'BcayYI7ü%$Av<äJ5Aä@V(GMX$8+>OUn);?Ap4Cf2';
		
		$hash1 = sha1(md5($key));
		$hash2 = sha1(md5($password));
		$password = md5(sha1($hash1 . $hash2));
		
		return $password;
	}
}

Revision: 6525
at June 18, 2008 10:15 by Sn0opy


Updated Code
function encrypt($password) {
	if(!empty($password)) {
		$key = 	'KütNcFw<v5&[email protected]+n<JT*;Hb6?WkZVsY1ä9/(6QH'.
			'7]B=)4{ö_>sSqUu+oKmOZ,+/(&eE5/ZSLNj5v&V}'.
			'(3&z_<36L&w�,Nj>@e([GWgV*-c1C(u6H64DQ*Z�'.
			'w4YDKJ6k)br8/;&i8Jq/l*(%eüfsKwmGrgrdteJ%'.
			'bwGwHV>&r(�4n%M1y83m3v:P{]R&J0#-9rg_&x_N'.
			'PY5#Pw&4MCG54=J()mpüZd];�fmsFmD5vb3iä4Se'.
			'�]e%jsi(7,{z*%jGPmbyjL%!!�2C#&(40(K#?4e1'.
			'BcayYI7ü%$Av<äJ5Aä@V(GMX$8+>OUn);?Ap4Cf2';
		
		$hash1 = sha1(md5($key));
		$hash2 = sha1(md5($password));
		$password = md5(sha1($hash1 . $hash2));
		
		return $password;
	}
}

Revision: 6524
at May 27, 2008 13:31 by Sn0opy


Initial Code
function encrypt($password) {
	if(!empty($password)) {
		$key = 	'KütNcFw<v5&[email protected]+n<JT*;Hb6?WkZVsY1ä9/(6QH'.
				'7]B=)4{ö_>sSqUu+oKmOZ,+/(&eE5/ZSLNj5v&V}'.
				'(3&z_<36L&wÜ,Nj>@e([GWgV*-c1C(u6H64DQ*ZÄ'.
				'w4YDKJ6k)br8/;&i8Jq/l*(%eüfsKwmGrgrdteJ%'.
				'bwGwHV>&r(Ö4n%M1y83m3v:P{]R&J0#-9rg_&x_N'.
				'PY5#Pw&4MCG54=J()mpüZd];ÄfmsFmD5vb3iä4Se'.
				'Ö]e%jsi(7,{z*%jGPmbyjL%!!Ä2C#&(40(K#?4e1'.
				'BcayYI7ü%$Av<äJ5Aä@V(GMX$8+>OUn);?Ap4Cf2';
		
		$hash1 = sha1(md5($key));
		$hash2 = sha1(md5($password));
		$password = md5(sha1($hash1 . $hash2));
		
		return $password;
	}
}

Initial URL


Initial Description
Password will be returned as md5

Initial Title
Password encryption

Initial Tags


Initial Language
PHP