CypherText

API Documentation

This is the documentation about fetching the API to use the cipher function

Parameter:

ParameterDescriptionValue TypeRequired?
typeThe type of cipher, either `encipher` or `decipher``encipher` | `decipher`true
textThe text to be convertedstringtrue
keysThe key used to convert the text. For multiple keys, separate it with a comma (`,`)string | string[]true

Return:

KeyDescriptionValue Type
codeThe response codenumber
messageThe response messagestring

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

Example: Encipher `hello`` with key of `money`