Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.31 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.31 KB

RSA-SHA512 in Apex

This solution stands of the shoulders of a number of people who provided reference
implementations and ideas. We wish to express appreciation for their published work:

diagram

  1. A private key file holds secret prime numbers
  2. An ASN key reader handles the binary file format
  3. The message to sign consists of a JSON Web Token
  4. Then a SHA512 hash reduces the message to a big integer
  5. Finally the RSA signer executes the modPow signature math

Usage:

Blob signature = CryptoRsaSha512.sign(message, privateKey);

While we can't provide ad-hoc support for this code, please contact us with your company
name and address if you need a warranty for its use and we will assist: www.streamscript.com/contact