A super small backend written for cipher-salad. This project makes use of another Go project developed in-house: teach-la-go-backend-tinycrypt, by Tomoki of the Teach LA dev team and ACM Design. Endpoint documentation below:
GET /cipher/cipher-salad-backend
Status Code: 200 (OK)
{
"shamt": 12,
"plaintext": "this is what we will encode"
}
All failed or invalid requests will be met with a non-200 response and an error message.
POST /cipher
{
"shamt": 1,
"plaintext": "This is the content that was shifted by one."
}
Status Code: 201 (Created)
three-word-hash
This three word hash can then be used in a call to GET /cipher/three-word-hash
.
All failed or invalid requests will be met with a non-201, non-200 response and an error message.
Aliases are actually just map[string]string
s that hold a single value, whose field is specified through the aliasID
constant in be.go
.
All firebase operations are carried out in transactions.