Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases
You last visited: Today at 13:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]AllHash script (php)

Discussion on [Release]AllHash script (php) within the Coding Releases forum part of the Coders Den category.

Reply
 
Old   #1
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
[Release]AllHash script (php)

Hello, guys. Sorry, I'm not really German so I'll be writing in English.

This is a little script I wrote on PHP to hash a string with all hashes that your PHP supports. It automatically finds what hashes it supports and then hashes your string using it. I know it's really short and nothing difficult, you may say that anyone can make it, but I find it really useful, so I am releasing it.

PHP Code:
<?php 

/* ----------{Zombe's All-hash page}---------- */ 

echo('<title>All Hash</title>'); 
$pagename $_SERVER[PHP_SELF]; 
if (
$_GET[step] == ''
{  
    echo(

    <center><pre> 
    <Form Name ='form0' action='
$pagename?step=2' Method ='POST'> 
    Enter the string to hash:<p> 
    <input name='str' type='text' value=''><p> 
    <input name='submit' type='submit' value='Hash!'> 
    </form0> 
    </pre></center> 
    "
); 

elseif (
$_GET['step'] == '2'

    echo(

    <center> 
    <b><u><font size=5>
$_POST[str]</font></u></b><p> 
    <table border='1'> 
    <tr> 
    <td align='center'><b>Hash algorythm</b></td> 
    <td align='center'><b>Hashed string</b></td> 
    </tr> 
    "
); 
    foreach(
hash_algos() as $hash
    { 
        
$hashed hash($hash,$_POST[str]);
        echo(

        <tr> 
        <td align='center'>
$hash</td> 
        <td align='center'>
$hashed</td> 
        </tr> 
        "
); 
    } 
    echo
'</table>'

?>
Screens:
Updated 09/12/29 13:22 : Added title, made the 1st page look a little nicer.

Enjoy.
Attached Files
File Type: rar allhash.rar (562 Bytes, 37 views)
Zombe is offline  
Thanks
3 Users
Old 12/29/2009, 00:21   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,227
Received Thanks: 568
This better

Code:
   <form method="post">
        <label for="str">Tekst:</label> <input id="str" name="str"><br />
        <input name="submit" type="submit" value="Hash!">
    </form>
<?php
if(isset($_POST['str']) && !empty($_POST['str']))
{
?>
    <h1 style="text-decoration: underline"><?php echo $_POST['str']; ?></h1>
    <table border="1">
        <tr>
            <td align="center"><strong>Hash</strong></td>
            <td align="center"><strong>Hashed string</strong></td>
        </tr>
<?php
    foreach(hash_algos() as $hash)
    {
?>
        <tr>
            <td align="center"><?php echo $hash; ?></td>
            <td align="center"><?php echo hash($hash,$_POST['str']); ?></td>
        </tr>
<?php
    }
?>
    </table>
<?php
}
?>
conquer93 is offline  
Old 12/29/2009, 01:52   #3
 
elite*gold: 577
Join Date: Oct 2009
Posts: 665
Received Thanks: 3,502
Quote:
Originally Posted by conquer93 View Post
This better

Code:
   <form method="post">
        <label for="str">Tekst:</label> <input id="str" name="str"><br />
        <input name="submit" type="submit" value="Hash!">
    </form>
<?php
if(isset($_POST['str']) && !empty($_POST['str']))
{
?>
    <h1 style="text-decoration: underline"><?php echo $_POST['str']; ?></h1>
    <table border="1">
        <tr>
            <td align="center"><strong>Hash</strong></td>
            <td align="center"><strong>Hashed string</strong></td>
        </tr>
<?php
    foreach(hash_algos() as $hash)
    {
?>
        <tr>
            <td align="center"><?php echo $hash; ?></td>
            <td align="center"><?php echo hash($hash,$_POST['str']); ?></td>
        </tr>
<?php
    }
?>
    </table>
<?php
}
?>
Besser?, na ja
ist Geschmackssache.
Ich finde es nur noch unübersichtlicher geworden.

MfG tim.
tim66613 is offline  
Old 12/29/2009, 11:29   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,227
Received Thanks: 568
Code:
 echo"
        <center>
        <b><u><font size=5>$_POST[str]</font></u></b><p>
        <table border='1'>
        <tr>
        <td align='center'><b>Hash algorythm</b></td>
        <td align='center'><b>Hashed string</b></td>
        </tr>
    ";
Fail.

use ['str'].
conquer93 is offline  
Old 12/29/2009, 12:03   #5
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
Quote:
Originally Posted by conquer93 View Post
Code:
 echo"
        <center>
        <b><u><font size=5>$_POST[str]</font></u></b><p>
        <table border='1'>
        <tr>
        <td align='center'><b>Hash algorythm</b></td>
        <td align='center'><b>Hashed string</b></td>
        </tr>
    ";
Fail.

use ['str'].
It really doesn't matter. I did use it before, but then I noticed that you don't even need to use it, so I don't use it anymore to make the code shorter.
Zombe is offline  
Thanks
1 User
Old 12/29/2009, 12:18   #6
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,227
Received Thanks: 568
Quote:
Originally Posted by Zombe View Post
It really doesn't matter. I did use it before, but then I noticed that you don't even need to use it, so I don't use it anymore to make the code shorter.
Lol, i dont use it and it give me errors.

Notice: Use of undefined constant str - assumed 'str' in /media/data/oxan/public_html/test.php on line 20
Notice: Use of undefined constant str - assumed 'str' in /media/data/oxan/public_html/test.php on line 29
Notice: Undefined index: step in /media/data/oxan/public_html/test.php on line 4
conquer93 is offline  
Old 12/29/2009, 12:24   #7
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
Quote:
Originally Posted by conquer93 View Post
Lol, i dont use it and it give me errors.

Notice: Use of undefined constant str - assumed 'str' in /media/data/oxan/public_html/test.php on line 20
Notice: Use of undefined constant str - assumed 'str' in /media/data/oxan/public_html/test.php on line 29
Notice: Undefined index: step in /media/data/oxan/public_html/test.php on line 4
Thant means you should update your php to the latest version (5.2.12 I think).
Anyway, script updated to make it look a tiny bit nicer.
Zombe is offline  
Old 12/29/2009, 12:49   #8



 
elite*gold: 0
Join Date: Nov 2008
Posts: 20,557
Received Thanks: 9,134
Danke für die Mühe.
Rikkami is offline  
Old 12/29/2009, 13:49   #9
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,227
Received Thanks: 568
Quote:
Originally Posted by Zombe View Post
Thant means you should update your php to the latest version (5.2.12 I think).
Anyway, script updated to make it look a tiny bit nicer.
Its a string, ['str'] its better coding.
conquer93 is offline  
Reply


Similar Threads Similar Threads
[Release]*HOT* M2 Homepage + Script
02/10/2010 - Metin2 PServer Guides & Strategies - 29 Replies
Closen pls das script hatn fehler!
[Release][GC PH] Script and Char script
10/22/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 27 Replies
Here's the Script and Char_script with yellow lines hope it helped paki crch2 na lang po kasi na delete ko ung crch2 ko if any problems paki post na lang agad Credits to :handsdown::handsdown:Brian~ and Craymel:handsdown::handsdown: Btw... pang range po yan pede rin ung jump attack(Down) ng Dk,ragna bolt,block attack ng Ak,jump attack ng lass ung iba ko pang d nsabi paki banggit na rin
[Release] Automaton Script
08/05/2009 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 10 Replies
Ein kleines Script, entstanden aus reiner Langweile. Credits stehen drin. Funktioniert überall wo auch Automaton funktioniert. DOWNLOAD Befehle: gadd - Invitet dich in die Gilde des Ausgewählten Spielers. Der Spieler muss keine Invite Rechte haben noch muss der Gilden Leader on sein. Somit ist es möglich sich in JEDE Gilde zu inviten. padd - Invitet dich in die Party des Ausgewählten Spielers. Der Spieler muss Lead sein ansonsten passiert nichts. Ist keine Party vorhanden wird eine...
[Release] 1000x 115 Map Vac Script.
12/08/2008 - Dekaron Private Server - 22 Replies
Hello all here is Vac for 115 Map works for me good. First use Dekaronwztz Client. then Open ur Data.pak by Winhex go to Offset 43c463f0 press alt+1 go offset 43ca69d0 press alt+2(Thanks For MasterShouter) and Drag there Vac Script then Winhex will Freeze couple Min after it done Close ur Winhex and go into the game. Enjoy Vaccing at 115 map ^^ Thanks me if i helped ^^
[release] script only
12/27/2007 - General Gaming Discussion - 0 Replies
this hack is very glitchy. useless hack or not...i dont know this is -1hit Ko -Power User -Sudden Death what it does (dont need to be master)



All times are GMT +1. The time now is 13:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.