Skip to content
moxon home

Hash

The /hash endpoint converts a string into a hash, i.e. a string of characters that cannot be reversed into the original string.

posthttps://api.moxon.dev/v3/hash

Parameters

  • textstringrequired

    The string to hash (word, sentence, paragraph, etc.)

  • methodstringrequired

    The hashing method to use (see available methods below)

Available Methods52

Click to expand all available hashing methods

  • RSA Methods:
    • RSA-MD5
    • RSA-RIPEMD160
    • RSA-SHA1
    • RSA-SHA1-2
    • RSA-SHA224
    • RSA-SHA256
    • RSA-SHA3-224
    • RSA-SHA3-256
    • RSA-SHA3-384
    • RSA-SHA3-512
    • RSA-SHA384
    • RSA-SHA512
    • RSA-SHA512/224
    • RSA-SHA512/256
    • RSA-SM3
  • Blake Methods:
    • blake2b512
    • blake2s256
  • SHA Methods:
    • sha1
    • sha224
    • sha256
    • sha384
    • sha512
    • sha512-224
    • sha512-256
    • sha3-224
    • sha3-256
    • sha3-384
    • sha3-512

Request Example

Request
curl -X POST -d "text=hello&method=sha512" "https://api.moxon.dev/v3/hash"

Response

Response
{
    "method": "sha512",
    "hash": "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"
}

Error Handling

If parameters are missing or invalid, the API will return an error:

  • 400Please provide a text (?text={text})The text parameter is missing
  • 400Please provide a valid hash algorithm (&method={algorithm})The method parameter is missing or invalid