Python Forum

Full Version: Encryption service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have recently made an encryption service in django and am interested in having some people try it out. I'm testing to see how usable this is, or see if it's a horrible idea. I am mostly looking for feedback and criticism, and am hoping this is a good place to get that.

If you are interested, let me know and I'll create a user for you and explain how to use it.

Thanks in advance,
Andy
I have created a user for members of this forum if anyone wants to play around with it, requests are limited on this user to 1000/day. Currently the service only supports encrypting text, but if there is any interest in a service like this I will include other formats as well.


    username: pythonforum
    password: _pyth0nForum-p@5s
    
    
    authenticate:
    curl -X POST -H "Content-Type: application/json" -d '{"username" : "<username>", "password": "<password>"}' http://crypto-put.zpmfhq6y4c.us-west-2.elasticbeanstalk.com/api-auth/
    
    reponse:
    {"token":"<token>"}
    
    
    use token to create encrypted entry:
    curl -H "Content-Type: application/json" -H "Authorization: JWT <token>" -X POST -d '{"d": "<message to encrypt>"}' http://crypto-put.zpmfhq6y4c.us-west-2.elasticbeanstalk.com/put/
    
    response:
    {"id":"<uuid>"}
    
    
    get data:
    curl -H "Content-Type: application/json" -H "Authorization: JWT <token>" -X POST -d '{"i": "<uuid>"}' http://crypto-put.zpmfhq6y4c.us-west-2.elasticbeanstalk.com/get/
    
    response:
    {"data":"<encrypted message>"}
    
    
    get decrypted data:
    curl -H "Content-Type: application/json" -H "Authorization: JWT <token>" -X POST -d '{"i": "<uuid>", "d": "1"}' http://crypto-put.zpmfhq6y4c.us-west-2.elasticbeanstalk.com/get/
    
    response:
    {"data":"<decrypted message>"}
    
Finally, I have 2 classes available if you wish to hook into the service using PHP or python, which can be downloaded here (they have example usage at the bottom of the classes):

https://drive.google.com/open?id=0B75M-P...VF2dmFnekE