Advertisement
Guest User

TS3 Password Maker

a guest
Feb 2nd, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.24 KB | None | 0 0
  1. <?php
  2. /*    
  3. *    TeamSpeak3 Password Encrypter by Dasoren <Dasoren@Dasoren.com>
  4.  *
  5.  *    Revision:    1
  6.  *    Latest change:    2014-2-2 14:48:51 EST (-5 GMT)
  7.  *
  8.  *    Copyright (c) 2014, Dasoren <Dasoren@Dasoren.com>
  9.  *    All rights reserved.
  10.  *      
  11.  *    Redistribution and use in source and binary forms, with or without
  12.  *    modification, are permitted provided that the following conditions are met:
  13.  *        * Redistributions of source code must retain the above copyright
  14.  *          notice, this list of conditions and the following disclaimer.
  15.  *        * Redistributions in binary form must reproduce the above copyright
  16.  *          notice, this list of conditions and the following disclaimer in the
  17.  *          documentation and/or other materials provided with the distribution.
  18.  *        * Neither the name of Dasoren nor the
  19.  *          names of his contributors may be used to endorse or promote products
  20.  *          derived from this software without specific prior written permission.
  21.  *    
  22.  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  23.  *    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  24.  *    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  25.  *    DISCLAIMED. IN NO EVENT SHALL ACTIUM BE LIABLE FOR ANY
  26.  *    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  27.  *    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  28.  *    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  29.  *    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30.  *    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  31.  *    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32.  *    
  33. */
  34. ?>
  35. <html>
  36. <head>
  37.   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  38.   <title>Leckoren Servers TS3 Password Encrypt</title>
  39. </head>
  40. <body>
  41.   <table width="500"
  42.       border="0"
  43.       align="center"
  44.       cellpadding="0"
  45.       cellspacing="1"
  46.       bgcolor="#CCCCCC">
  47.     <tr>
  48.       <form name="form1"
  49.          method="post"
  50.          action="pass.php">
  51.         <td>
  52.           <table  width="100%"
  53.              border="0"
  54.              cellpadding="1"
  55.              cellspacing="1"
  56.              bgcolor="#CCCCCC">
  57.             <tr>
  58.               <strong>
  59.                 TS3 Pass Encrypt <br>
  60.                 #1 Enter Password<br>
  61.                 #2 Press Encrypt <br>
  62.                 #3 Copy Encrypted Password
  63.               </strong>
  64.             </tr>
  65.             <tr>
  66.               <td style="width120px;">Encrypted Password</td>
  67.               <td>:</td>
  68.               <td><input  disabled
  69.                    name="encrypt"
  70.                    type="text"
  71.                    id="encrypt"
  72.                    style="width:254px;height31px;"
  73.                    value=   <?php if(isset($_POST['mypassword'])){
  74.                          $encrypted=(base64_encode(sha1($_POST['mypassword'], true)));
  75.                          echo $encrypted;} else{ echo '';}
  76.                        ?> >
  77.                      
  78.               </td>
  79.             </tr>
  80.             <tr>
  81.               <br><br>
  82.               <td style="width120px;"><?php
  83.                            if(isset($_POST['mypassword'])){echo "Unencrypted Password";}
  84.                            else{echo "Password to Encrypt";}
  85.                          ?></td>
  86.               <td>:</td>
  87.               <td><input   name="mypassword"
  88.                    type="text"
  89.                    id="mypassword"
  90.                    style="width:254px;height31px;"
  91.                    value=
  92.                      <?php if(isset($_POST['mypassword'])){
  93.                        echo $_POST['mypassword'];} else{ echo '';}
  94.                      ?> >
  95.               </td>
  96.             </tr>
  97.             <tr>
  98.               <td>&nbsp;</td>
  99.               <td>&nbsp;</td>
  100.               <td><input   type="submit"
  101.                    name="make"
  102.                    value="Encrypt">
  103.               </td>
  104.             </tr>
  105.           </table>
  106.         </td>
  107.       </form>
  108.     </tr>
  109.   </table>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement