Tygs / 0bin

Client side encrypted pastebin
https://0bin.net
Do What The F*ck You Want To Public License
1.37k stars 198 forks source link

Wondering how to decrypt in Python #130

Closed yazeed44 closed 4 years ago

yazeed44 commented 4 years ago

Hello.

I'm trying to work on a basic 0bin client, in which the user will enter a URL(s) and the client will decrypt them locally, but I'm having trouble with decrypting content with the key embedded in the url. Here is the process I'm doing:

The problem is that I'm getting gibberish results. I'm probably missing something but I don't know what is. For AES, I'm using PyAes with AES mode CTR. You can take a look at the code I wrote over here: https://github.com/yazeed44/0bin-client/blob/master/Main.py

Thanks

ksamuel commented 4 years ago

You can use SJCL.py: https://pypi.org/project/sjcl/