2.0.0 • Published 8 years ago

magic-signatures v2.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 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

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

1.0.0-4

8 years ago

1.0.0-3

8 years ago

1.0.0-2

8 years ago

1.0.0-1

8 years ago