Releases: imgupload-py/imgupload.py
v2.2
v2.1.3 - Change abort() calls to JSON responses
This makes it easier for programs to interpret the responses. Programs can be sure that the response they get will be JSON. Before, sometimes the program would return HTML responses.
v2.1.2 - Deduplicate and optimize code in keyctl.py
Removed some duplicate code blocks in keyctl.py.
v2.1.1 - Use secrets instead of random (security reasons)
It's insecure to use a pseudorandom number generator.
v2.1 - Add keyctl.py for easy management of uploadkeys
Use the help screen shown with python3 keyctl.py --help
For example:
$ python3 keyctl.py list
List of upload keys:
[1] 8lNwhQ...
[2] 7lqIWL...
[3] dJhoKd...
[4] lxBfii...
[5] RxdjmO...
$ python3 keyctl.py show 7lqIWL
Key: 7lqIWLZ4QpVAnzT1zFwqv3epuvcTtfQkINxxST8i8L3e9BKO8WGWGer0horwU6wb
$ python3 keyctl.py generate
Your new key is: d5TUunlMuSHitcs86DqYdo9c6WAtHvbtS3Ss4aXsxJhCvB0OFftAydnMK9VXt7A9
$ python3 keyctl.py list
List of upload keys:
[1] 8lNwhQ...
[2] 7lqIWL...
[3] dJhoKd...
[4] lxBfii...
[5] RxdjmO...
[6] d5TUun...
$
v2.0 - Removed uploadkeys encryption
This is v2.0 because it is completely non-backwards compatible.
Decrypting your uploadkeys file
Take the latest keygen.py from the branch feature-iss4
and run the command python3 -c 'import keygen; keygen.decrypt_uploadkeys()'
to decrypt your uploadkeys file. If you get the following:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/bbaovanc/github-repos/imgupload/keygen.py", line 80, in <module>
if Path(settings.ENCKEY_PATH).is_file():
AttributeError: module 'settings' has no attribute 'ENCKEY_PATH'
then add ENCKEY_PATH = "secret.key"
(substitute secret.key if you changed it) back to your settings.py temporarily. You may remove ENCKEY_PATH
from your settings.py after decrypting your uploadkeys.
v1.1
v1.0 - Stable release
First "production-ready" version.
v0.1 - First release on GitHub
This is the first version released to GitHub