go install github.com/saw2th/encoding-proj/encserv
run using:
bin/encserv
curl -X POST http://localhost:8080/store -d '{"Id" : "123", "Content": "abcde"}'
example return:
{"Key":"5151d9ef0a6ff067447f72cebd532ca3"}
then copy the 'Key' value to the POST data 'Key' on the retrieve url
curl -X POST http://localhost:8080/retrieve -d '{"Id" : "123", "Key": "5151d9ef0a6ff067447f72cebd532ca3"}'
example return:
{"Content":"abcde"}
go test github.com/saw2th/encoding-proj/enc-client