Generate a PvPGN Hash
This utility creates x-sha (broken sha) hash from any input password.
Hash code implementations
PHP5 static class
Download pvpgnhash.class.phpExample 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.plExample of use
#!/usr/bin/perl do 'pvpgnhash.pl'; $pass = '12345'; $hash = pvpgn_hash($pass); # print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4 print $hash;
JavaScript class
Download pvpgnhash.jsExample 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.javaExample 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.csExample 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.dllExample 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.exeDownload 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