Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.6 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.6 KB

Warning: Current release of eXist crypto lib 5.3.0 has known fatal issues. See eXist-db#33.

eXist implementation for EXPath Cryptographic Module

Currently implemented functions

  • crypto:hash()
  • crypto:hmac() (only for xs:string data for now)
  • crypto:encrypt() (only for xs:string data and symmetric encryption for now)
  • crypto:decrypt() (only for xs:string data and symmetric decryption for now)
  • crypto:generate-signature() (only for XML data for now)
  • crypto:validate-signature() (only for XML data for now)

Currently implemented algorithms

  • For crypto:hash(): "MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512".
  • For crypto:hmac(): "HMAC-MD5", "HMAC-SHA-1", "HMAC-SHA-256", "HMAC-SHA-384", "HMAC-SHA-512".

Documentation

For the latest version of the specification for this module see http://expath.org/spec/crypto/editor.

The implementation follows this specification.

Examples of usage

For examples of usage, see this folder in github or this collection when this library is installed in eXist.

Unit Tests

Unit Tests can be found in this folder in github or in this collection when this library is installed in eXist.

When this library is installed in eXist, to get a simple test runner, showing description and status (passed / failed) for each unit test, go here.