Skip to content

Instantly share code, notes, and snippets.

@jefferyrdavis
Last active December 19, 2015 17:38
Show Gist options
  • Save jefferyrdavis/5992211 to your computer and use it in GitHub Desktop.
Save jefferyrdavis/5992211 to your computer and use it in GitHub Desktop.
Snippit: PHP: Hardcore Encryption Function
<?php
// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net)
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;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment