Skip to content

Instantly share code, notes, and snippets.

@javedbaloch4
Last active August 29, 2015 14:22
Show Gist options
  • Save javedbaloch4/806e39ebd78b35e9c52a to your computer and use it in GitHub Desktop.
Save javedbaloch4/806e39ebd78b35e9c52a to your computer and use it in GitHub Desktop.
Convert plan text into hash md5,crypt,sha1 in PHP
<?php
$txt = "Javed";
$t_md5 = md5($txt);
$t_sha1 = sha1($txt);
$t_crypt = crypt($txt);
echo $t_md5. "<br>" . $t_sha1 . "<br>" . $t_crypt ;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment