This is the documentation about fetching the API to use the cipher function
Parameter:
| Parameter | Description | Value Type | Required? |
|---|---|---|---|
| type | The type of cipher, either `encipher` or `decipher` | `encipher` | `decipher` | true |
| text | The text to be converted | string | true |
| keys | The key used to convert the text. For multiple keys, separate it with a comma (`,`) | string | string[] | true |
Return:
| Key | Description | Value Type |
|---|---|---|
| code | The response code | number |
| message | The response message | string |
Note: If success, the response message will contains the result of cipher. Otherwise, it will contains the reason of error
Usage:
Base Path: https://cyphertext.vercel.app/api/cipher
With Parameter: https://cyphertext.vercel.app/api/cipher?type=encipher&text=hello&keys=money