1.2.2 • Published 2 years ago

khawn2u-crypt v1.2.2

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Crypt

Create new crypt

var crypt = new Crypt();

crypt.ECurve

This is a constructor that creates a new Eliptic Curve with paramiters a, b, and modulo m.

crypt.Keccak256

This is the Keccak256 hash of the input, the input can be text or a Uint8Array.

crypt.Keccak384

This is the Keccak384 hash of the input, the input can be text or a Uint8Array.

crypt.PublicCurve

This is a constructor taking in as the first paramiter a crypt.ECurve object, second paramiter an array of BigInt with length 2 as a generator point, and as the third paramiter the order of the generator point on the curve difined in the first paramiter.

crypt.secp256k1

This is a pre-made crypt.PublicCurve Object with already diffined paramiters, following the secp256k1 curve documentation.

crypt.secp384r1

This is a pre-made crypt.PublicCurve Object with already diffined paramiters, following the secp384r1 curve documentation.

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago