After searching the Web, I couldn't find an answer on how to create a hashcode in php.
I'm writing a Newsletter-Tool and don't wan't to get blacklisted, ok who wants :-)
I have already checked my reverse DNS, SPF an spamhouse.org...
Can someone help me out on how to create a hashcash in PHP (with example)?
TheFox has implemented Hashcash into PHP which is available on Github
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to composer.json:
composer.phar require "thefox/hashcash=~1.0"
An example usage of that implementation is:
<?php
require 'vendor/autoload.php';
use TheFox\Pow\Hashcash;
$hashcash = new Hashcash(20, '[email protected]');
print "hashcash stamp: '".$hashcash->mint()."'\n";
?>
Also, the hashcash.org website has developer notes on how to implement it yourself as well as OS specific tools available which can be used via shell_exec()
in PHP
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With