Jump to content
Sign in to follow this  
xZero

xAlz Encryption v2.0 [PHP] (OBSOLETE)

Recommended Posts

Here is my Encryption algorithm written in PHP, this is the newest version, v2.0 . I am using it for a long time and no issues.  

<?PHP
function xAlz($input, $salt = NULL)
{
    // xAlz 2.0
    $Key['X'] = substr(sha1($input), 7, 13);
    $Key['A'] = strlen($Key['X']) * strlen($input) * 1024 / 64;
    $Key['L'] = base64_encode($Key['A'] . "/$salt" . $Key['X']);
    $Key['Z'] = hash_hmac('SHA512', $input, $Key['X'] . $Key['L']);
    return hash_hmac('SHA256', $Key['Z'], $Key['X']);
}
?>

Save this code in file "xAlz.php" and add this to your main page:

require "xAlz.php";

Then for encryption just use (example):

- Without salt -

<?PHP
$string = "elite7hackers.net";
echo "xAlz Hash for $string is" . xAlz($string);
?>

- With salt -

<?PHP
$string = "elite7hackers.net";
$salt   = "hccoUv6rZkyX7D8BCQTJoIVOP2uRgPAx";
echo "xAlz Hash for $string is" . xAlz($string, $salt);
?>

 

Output is SHA256 hash, but it's pre-hashed several times in multiple algorithms before final output so there are no possible chances that for example hashed "TEST" will match in any hash database existing, even without using salt. Salt is just extra level of security. Brute force possibility: For now, none. What's new in 2.0: - Almost completely rewritten - Salt support DEMO: http://apps.elite7hackers.net/apps/UniHasher/

Share this post


Link to post
Share on other sites

This is not encryption, is hashing my friend. Encryption is a process of encoding a text, in such way that THE HACKER won't be able to read it, and then decrypted by the one who must receive the message :) The only way to `decrypt` a hashing string is guessing the input, hash it and compare with initial hash :D But what do I know.. you are the hacker :P

Share this post


Link to post
Share on other sites

Yeah that's hashing. My bad. Real encryption is AES for example. But hashing can be called encryption. And it is called encryption on many places over the internet. So for fun I love to call it encryption. And you are completly right about decrypting. MD2, MD4, MD5, SHA-1 etc. are one-way encryption algorithms. As it says "one-way", means that this can't be decrypted again. Only guessing (bruteforce, dictionary etc) as you said. UniHasher is an application for hashing (encrypting) string into many algorithms http://apps.elite7hackers.net/apps/UniHasher/ Check it out.

Share this post


Link to post
Share on other sites

As of today, I'm officially dropping support for this function, and it's unlikely that there will be any updates. 

Further, usage is, therefore, discouraged.

 

Reason: Weakness in algorithm 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Elite7Hackers Netwok

Hack the imagination!

Support and inquiries

Open support ticket here or email us at [email protected]

Highlights

Highlighted/recommended lights

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy and Terms of Use.