Get started with jquery.hashcash.io CDN
MIT licensed
JQuery.hashcash.io is a jQuery plugin that implements the Hashcash anti-spam system.
Tags:- spam
- security
- jquery
Stable version
Copied!
How to start using jquery.hashcash.io CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with jquery.hashcash.io CDN - cdnhub.io</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.cdnhub.io/jquery.hashcash.io/0.0.2/jquery.hashcash.io.min.js"></script>
<script>
$(document).ready(function() {
// Set up the hashcash instance
$.hashcash.setup({
minWorkFactor: 10, // Adjust the work factor as needed
timeout: 30000 // Set the timeout in milliseconds
});
// Generate a proof-of-work token
$.hashcash.create(function(proof) {
console.log('Proof-of-work token:', proof);
// Use the token in your application logic
// For example, send it to the server for verification
});
});
</script>
</head>
<body>
<!-- Your HTML content goes here -->
</body>
</html>
Copied!
Copied!
Copied!
Copied!