2.0.0 • Published 6 years ago

magic-signatures v2.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

magic-signatures

Read, validate and write magic-signature signed XML and JSON

Keys are accepted in magic-key or PEM format.

Use

Verifying a signature:

magic.verify(magic.fromXML(magicSignatureEnvelope), magicKey)

Signing a payload:

magic.sign({
	data: "Hello, world",
	data_type: "text/plain"
}, magicPrivateKey))

Parsing an XML payload into the much simpler JSON structure:

const obj = magic.fromXML(payload)

Building an XML payload from the much simpler JSON structure:

const xml = magic.toXML(obj)

References

2.0.0

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-4

7 years ago

1.0.0-3

7 years ago

1.0.0-2

7 years ago

1.0.0-1

7 years ago