Hashing API

Ovewview

This API allows users to hash text up to 2048 characters in a variety of algorithms.

Base URL

https://api.msmc.cc/

Endpoints

Hash text

Info

Endpoint: /api/hashing/:algorithm/:text

Method: GET

Base URL: https://api.msmc.cc/

Options

  1. :algorithm - The desired algorithm. Must be one of the following supported algorithms see Supported Algorithms
  2. :text - The text you want to hash. Must be 2048 characters or less (2 kb)

Description

This endpoint returns the input text hashed in your desired algorithm

Response Structure

{
  "Algorithm": "",
  "Input": "",
  "Hash": "",
  "Timestamp": 
}

Example request

GET https://api.msmc.cc/api/hashing/sha256/testData

Example Response

{
  "Algorithm": "sha256",
  "Input": "testData",
  "Hash": "ba477a0ac57e10dd90bb5bf0289c5990fe839c619b26fde7c2aac62f526d4113",
  "Timestamp": 1757193156152
}

Error Structure

All error messages contain the following information, as well as error specific information:

{
  "Error": "",
  "Status": 
}

Where:

Possible Errors

1. Input too large
If you try to hash text larger than 2048 characters (2kb) you will recieve the following error, where n is the amount of character over the limit:

{
  "Error": "Input was n over the 2048 character limit."
}

2. Invalid Algorithm
If you try to pass an unsuported or invalid algorithm you will recieve the following error:

{
  "Error": "Invalid Algorithm",
  "Supported": [
    "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-SM3",
    "blake2b512",
    "blake2s256",
    "id-rsassa-pkcs1-v1_5-with-sha3-224",
    "id-rsassa-pkcs1-v1_5-with-sha3-256",
    "id-rsassa-pkcs1-v1_5-with-sha3-384",
    "id-rsassa-pkcs1-v1_5-with-sha3-512",
    "md5",
    "md5-sha1",
    "ripemd",
    "ripemd160",
    "rmd160",
    "sha1",
    "sha224",
    "sha256",
    "sha3-224",
    "sha3-256",
    "sha3-384",
    "sha3-512",
    "sha384",
    "sha512",
    "sha512-224",
    "sha512-256",
    "shake128",
    "shake256",
    "sm3"
  ],
  "Status": 400
}

3. Server Error While Hashin
If the server throughs an error while hashing, you will recieve the following error, where details contains the actual error message:

{
  "Error": "Hashing Failed.",
  "Details": "Error Details",
  "Status": 500
}

View supported algorithms

Info

Endpoint: /api/hashing/algorithms

Method: GET

Base URL: https://api.msmc.cc/

Options

None

Description

This endpoint returns the supported algorithms

Response Structure

{
  "Supported Algorithms": []
}

Example request

GET https://api.msmc.cc/api/hashing/algorithms/

Response

{
  "Supported Algorithms": [
    "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-SM3",
    "blake2b512",
    "blake2s256",
    "id-rsassa-pkcs1-v1_5-with-sha3-224",
    "id-rsassa-pkcs1-v1_5-with-sha3-256",
    "id-rsassa-pkcs1-v1_5-with-sha3-384",
    "id-rsassa-pkcs1-v1_5-with-sha3-512",
    "md5",
    "md5-sha1",
    "ripemd",
    "ripemd160",
    "rmd160",
    "sha1",
    "sha224",
    "sha256",
    "sha3-224",
    "sha3-256",
    "sha3-384",
    "sha3-512",
    "sha384",
    "sha512",
    "sha512-224",
    "sha512-256",
    "shake128",
    "shake256",
    "sm3"
  ]
}

Supported Algorithms

Currently this API has full support for all of the 38 follwing algorithms:

Support

For support, email [email protected]