Axinom Mosaic Libraries
    Preparing search index...
    • Generates a signature using RSA SHA256

      Parameters

      • valueToHash: string | number | boolean | object

        The value that should be signed. Strings are taken as they are - other types are stringified in a consistent way.

      • privateKey: string

        The RSA private key to use for signing the value

      Returns { signature: string; stringifiedValue: string }

      The generated signature and the (stringified) value that should be used to send along with the signature