ccb87c0c18 | ||
---|---|---|
.. | ||
archive | ||
unstable | ||
Picocrypt.py | ||
README.md | ||
reedsolo.zip | ||
sdelete64.exe | ||
tkinterdnd2.zip |
README.md
Running from source
If you want to run from source or would like to use Picocrypt on any platform that supports Python, you're in the right place. To run Picocrypt from source, first make sure you have Python3 installed (any version >3.6 will do). Then, download Picocrypt.py
from above (you can download a zip file of the files above from the homepage). Now, install these dependencies via pip
: argon2-cffi
, pycryptodome
, cython
, reedsolo
, and blake3
. Make sure tkinter is installed on your platform. On Linux, you might have to sudo apt-get install python3-tk
.
Next, download tkinterdnd2.zip
from above. Extract it and go into it. Inside, you'll see two Python files and a directory called tkdnd
.
Now, find the directory where Python is installed. On Windows, for example, this folder would probably be here:
C:\Users\(Your username)\AppData\Local\Programs\Python\PythonXX
. Go to there.
Now, go into Lib/
and then site-packages
. Create a folder named tkinterdnd2
. Go into there and copy __init__.py
and TkinterDnD.py
from the zip you extracted earlier to here.
Next, go back to the directory where Python is installed. Go into tcl/
and then tclX.X
. Go into the same folder you extracted earlier and go into tkdnd/
, and then go into your respective platform folder. Copy all the files there into the tclX.X
directory from above.
Download reedsolo.zip
from above, extract it, and go into the folder. Open up a terminal and python setup.py install
. When that's finished, go into Build/
and then lib.XXXXXXX
. You should now have a Python extension called creedsolo.pyd
on Windows, creedsolo.so
or creedsolo.dylib
on MacOS, and creedsolo.so
on Linux. Copy this file to the same directory where Picocrypt.py
is.
If you on Windows, you will also need to download sdelete64.exe
and put it in the same directory as Picocrypt.py
.
Now you're all good. Just python3 Picocrypt.py
and enjoy!
External links
- Argon2-cffi: https://github.com/hynek/argon2-cffi
- Pycryptodome: https://github.com/Legrandin/pycryptodome
- ReedSolo: https://github.com/tomerfiliba/reedsolomon
- Tkinterdnd2: https://github.com/pmgagne/tkinterdnd2