New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@andybry/crypto-testing

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andybry/crypto-testing

Utilities for expermenting with cryptography

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Crypto Testing

Experimentation and research in cryptography.

Contains a number of experimental utilities for building cryptographic primitives and a few experimental implementations.

It is hoped that some of the items here will be useful for other people who are also studying cryptography in a JavaScript context.

In particular the implementations, computation algorithms and tests could be useful to help improve understanding.

Installation

npm install @andybry/crypto-testing

Utilities

  • shared/big-int: working with and converting to and from big ints
  • shared/bit: working with and converting to and from bits
  • shared/byte: working with and converting to and from bytes
  • shared/curve: elliptic curve implementation
  • shared/fp2: implementation of field of order p squared
  • shared/random: secure random generators
  • shared/secp256k1: parameters and associated elliptic curve implementation
  • shared/string: working with and converting to and from string representations of data
  • shared/zn: implementation of field of order p (or could be used for rings if n is not prime)

Scripts

  • npm run des: implementation of the Data Encryption Standard (for 1 64-bit block)
  • npm run des:node: the same thing using nodes crypto API for comparison
  • npm run ecdsa: demonstrates the implentation of ECDSA using secp256k1
  • npm run ecdsa:vs-ethereum: compares local signing and recovery with the Ethereum version (from web3.js)

Keywords

FAQs

Package last updated on 20 Sep 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc