Go-Algorithms-Echo
Some arbitrary algorithms implemented with Go and the Echo framework.
Algorithms
Each endpoint uses the same JSON to specify the input and output:
{
"input": "my input string",
"output": "the generated output"
}
Base64
To convert a string to Base64, just POST it (as "input" inside the common JSON object) to /base64/encode.
To convert a string in Base64 back to normal, just POST it (as "input" inside the common JSON object) to /base64/decode.
ROT13
To encode or decode a string with ROT13 just POST it (as "input" inside the common JSON object) to /rot13.
Addendum
This repository is for learning purposes only. The algorithms are not tested, have minimal to none error checking and generally are not suitable for production. Use at your own risk!