Socket
Socket
Sign inDemoInstall

@mcaptcha/pow_sha256-polyfill

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mcaptcha/pow_sha256-polyfill


Version published
Weekly downloads
29
decreased by-34.09%
Maintainers
2
Install size
4.37 kB
Created
Weekly downloads
 

Readme

Source

PoW JavaScript library

JavaScript library to generate PoW for mCaptcha

0.1.0 Build) codecov

Usage

To generate proof-of-work, per mCaptcha specification:

import {generate_proof} from "@mcaptcha/pow_sha256-polyfill";

let salt = "randomsaltvalueprovidedbymcaptcha";
let phrase = "randomphrasevalueprovidedbymcaptcha";
let difficulty = 50_000;

let work = await generate_proof(salt, phrase, difficulty);

Keywords

FAQs

Last updated on 08 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc