Skip to content

Instantly share code, notes, and snippets.

@SecureCloud-biz
Forked from glynrob/gist:7059295
Last active August 29, 2015 14:13
Show Gist options
  • Save SecureCloud-biz/0abb559047c100b1c9f6 to your computer and use it in GitHub Desktop.
Save SecureCloud-biz/0abb559047c100b1c9f6 to your computer and use it in GitHub Desktop.
HASHING in PHP
<?php
// https://glynrob.com/php/hashing-and-public-key-encryption/
$md5 = md5($password.$salt);
echo "MD5 = $md5 <br>";
$sha1 = sha1($password.$salt);
echo "SHA1 = $sha1 <br>";
$sha512 = hash('sha512', $password.$salt);
echo "SHA512 = $sha512 <br>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment