PHP Encrypt Password and Display URL of current page and URI details
<?php
echo hash_hmac('ripemd160', 'Stay foolish, stay hungry.', 'secret');
echo '<br>';
echo hash('ripemd160', 'Stay foolish, stay hungry.');
echo '<br>';
echo sha1('tobbynews');
echo '<br>';
echo md5('tobbynews');
echo '<br>+12r---';
echo crc32('Stay foolish, stay hungry.');
echo '<br>';
echo crypt('Stay foolish, stay hungry.');
echo '<br>';
echo $_SERVER['PHP_SELF'];echo '<br>';
echo $_SERVER['SCRIPT_NAME'];echo '<br>';
echo $_SERVER['HTTP_HOST'];echo '<br>';
echo $_SERVER['SERVER_NAME'];echo '<br>';
echo $_SERVER['REQUEST_URI'];echo '<br>';
$encode=base64_encode ('ganpath');echo $encode;echo '<br>';
$decode=base64_decode($encode);echo $decode;echo '<br>';
$rot13=str_rot13('ganpath');echo $rot13;echo '<br/>';//Perform the rot13 transform on a string
//echo date ( string $format [, int $timestamp = time() ] );
echo urlencode ( 'http://192.168.1.36:9090/eg/' );echo '<br/>';
?>
The out put is :
---------------
d96e9683178a9d6defedde594f7e1944cf8864b6
2f86cf7076249485b549ffc137ab644cb9c9e67a
bbb6cc2fc4f0d1cc7d230032d8bca24adc73837c
6288a589247f3ab3231fc9a86e624ac8
1875988720
$1$cC2./v0.$mlRkbA5CoBNT9WrkAo0Zj0
/eg/encrypt/encrypt.php
/eg/encrypt/encrypt.php
192.168.1.36:9090
192.168.1.36
/eg/encrypt/encrypt.php
ganpath
tnacngu
https%3A%2F%2F192.168.1.36%3A9090%2Feg%2F
Thanks for Ref : http://tobbynews.com/6-ways-to-encrypt-password-in-php.html
<?php
echo hash_hmac('ripemd160', 'Stay foolish, stay hungry.', 'secret');
echo '<br>';
echo hash('ripemd160', 'Stay foolish, stay hungry.');
echo '<br>';
echo sha1('tobbynews');
echo '<br>';
echo md5('tobbynews');
echo '<br>+12r---';
echo crc32('Stay foolish, stay hungry.');
echo '<br>';
echo crypt('Stay foolish, stay hungry.');
echo '<br>';
echo $_SERVER['PHP_SELF'];echo '<br>';
echo $_SERVER['SCRIPT_NAME'];echo '<br>';
echo $_SERVER['HTTP_HOST'];echo '<br>';
echo $_SERVER['SERVER_NAME'];echo '<br>';
echo $_SERVER['REQUEST_URI'];echo '<br>';
$encode=base64_encode ('ganpath');echo $encode;echo '<br>';
$decode=base64_decode($encode);echo $decode;echo '<br>';
$rot13=str_rot13('ganpath');echo $rot13;echo '<br/>';//Perform the rot13 transform on a string
//echo date ( string $format [, int $timestamp = time() ] );
echo urlencode ( 'http://192.168.1.36:9090/eg/' );echo '<br/>';
?>
The out put is :
---------------
d96e9683178a9d6defedde594f7e1944cf8864b6
2f86cf7076249485b549ffc137ab644cb9c9e67a
bbb6cc2fc4f0d1cc7d230032d8bca24adc73837c
6288a589247f3ab3231fc9a86e624ac8
1875988720
$1$cC2./v0.$mlRkbA5CoBNT9WrkAo0Zj0
/eg/encrypt/encrypt.php
/eg/encrypt/encrypt.php
192.168.1.36:9090
192.168.1.36
/eg/encrypt/encrypt.php
ganpath
tnacngu
https%3A%2F%2F192.168.1.36%3A9090%2Feg%2F
Thanks for Ref : http://tobbynews.com/6-ways-to-encrypt-password-in-php.html
No comments:
Post a Comment