Module auth

Module auth 

Source
Expand description

API authentication and cryptographic signing utilities.

Provides cryptographic functions for exchange API authentication:

  • HMAC signing (SHA256/SHA512/SHA384/MD5)
  • Hash functions (SHA256/SHA512/SHA384/SHA1/MD5/Keccak)
  • RSA signing (PKCS1v15)
  • EdDSA signing (Ed25519)
  • JWT token generation
  • Base64 encoding/decoding utilities

Enums§

DigestFormat
Output encoding format for cryptographic digests.
HashAlgorithm
Supported cryptographic hash algorithms.

Functions§

base64_to_base64url
Converts standard Base64 to Base64 URL format.
base64url_decode
Decodes a Base64 URL-encoded string.
eddsa_sign
Generates an EdDSA signature using Ed25519.
hash
Computes a cryptographic hash (one-way, keyless).
hmac_sign
Generates an HMAC signature for a message.
jwt_sign
Generates a JWT (JSON Web Token).