PvPGN Password Hash Tools

Generate a PvPGN Hash

This utility creates x-sha (broken sha) hash from any input password.


Password:

Hash code implementations

PHP5 static class

Download pvpgnhash.class.php
Example of use
<?php
    // initialize class
    require_once("pvpgnhash.class.php");

    $pass = "12345";
    $hash = pvpgn_hash::get_hash($pass);

    // print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
    echo $hash;
?>

Perl function

Download pvpgnhash.pl
Example of use
#!/usr/bin/perl
do 'pvpgnhash.pl';

$pass = '12345';
$hash = pvpgn_hash($pass);

# print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
print $hash;

JavaScript class

Download pvpgnhash.js
Example of use
<script src="pvpgnhash.js" type="text/javascript"></script>
<script type="text/javascript">
    var pass = "12345";
    var hash = pvpgn_hash.get_hash( pass );

    // message box will show with a text:
    //  460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
    alert(hash);
</script>

Java class

Download PvpgnHash.java
Example of use
class Main
{
   public static void main()
   {
       String pass = "12345";
       String hash = PvpgnHash.GetHash(pass);
       
       // print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
       System.out.println(hash);
   }
}

C# class

Download PvpgnHash.cs
Example of use
class Program
{
   public static void Main()
   {
       string pass = "12345";
       string hash = PvpgnHash.GetHash(pass);
       
       // print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
       Console.WriteLine(hash);
   }
}

Windows library

Download bnpass.dll
Example of use
C# code

using System;
using System.Runtime.InteropServices;

class Program
{
   // this attribute imports function from the unmanaged dll
   [DllImport("bnpass.dll", EntryPoint = "pvpgn_hash")]
   public static extern string pvpgn_hash(
    [MarshalAs(UnmanagedType.LPStr)]string pass);

   public static void Main()
   {
       string pass = "12345";
       string hash = pvpgn_hash(pass);
       
       // print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
       Console.WriteLine(hash);
   }
}


VB.NET code

Imports System.Runtime.InteropServices

Class Program
   ' this attribute imports function from the unmanaged dll
   <DllImport("bnpass.dll", EntryPoint := "pvpgn_hash")> _
   Public Shared Function pvpgn_hash( _
     <MarshalAs(UnmanagedType.LPStr)> pass As String) As String
   End Function

   Public Shared Function Main()
       Private pass As String = "12345"
       Private hash As String = pvpgn_hash(pass)
       ' print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4
       Console.WriteLine(hash);
   End Function
End Class

Windows executable (C++)

Download bnpass.exe
Download source code
Example of use
:: this is a command line program
:: you should run it using "cmd" (Start > Run... > cmd)

C:\>bnpass.exe 12345

:: above command will print
460e0af6c1828a93fe887cbe103d6ca6ab97a0e4