Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Releases: imgupload-py/imgupload.py

v2.2

06 Sep 00:01
Compare
Choose a tag to compare

Full changelog:

  • Change file extension check to be case-insensitive (0dbcc0e)
  • Add "verify" field to request to not save image (7c1f449)

v2.1.3 - Change abort() calls to JSON responses

05 Sep 20:45
Compare
Choose a tag to compare

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

05 Sep 00:48
Compare
Choose a tag to compare

Removed some duplicate code blocks in keyctl.py.

v2.1.1 - Use secrets instead of random (security reasons)

04 Sep 21:44
Compare
Choose a tag to compare

It's insecure to use a pseudorandom number generator.

v2.1 - Add keyctl.py for easy management of uploadkeys

04 Sep 20:58
c9cd646
Compare
Choose a tag to compare

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

04 Sep 03:02
565a91e
Compare
Choose a tag to compare

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

02 Sep 23:12
065296f
Compare
Choose a tag to compare

Feature changelog:

  • Allow easy customization of filename generation
  • Change keygen.py to not require root

Bugfix changelog:

  • Rename functions.py to functions.py.default

v1.0 - Stable release

01 Sep 05:21
Compare
Choose a tag to compare

First "production-ready" version.

v0.1 - First release on GitHub

31 Aug 22:37
Compare
Choose a tag to compare

This is the first version released to GitHub