REST API server for sharing secrets