86061e595c
do not calculate tag size twice
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-04 15:31:36 +00:00
49362c70a6
get encryption options from paste ( closes #22 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-04 15:29:04 +00:00
70328903fa
include license and requirements in source archive
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-04-11 17:59:19 +00:00
29498b9315
make codacy happy
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-01-07 00:58:19 +00:00
19f130feb1
add launch arguments for get and delete, check if pycrypto used
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-01-06 18:22:11 +00:00
682b47fbd3
0.3.0
...
New:
* Added validation of PrivateBin instance URL - #18 (it must contain trailing slash because POST is used)
* URL shortener support with various supported services - #19
* Shortener configuration, certificate validation and insecure warning settings can be configured in config file or via env
Changed:
* Restructured some parts of code by splitting big code chunks in funtions (encrypt/decrypt)
* Rework error messaging repeatable code (moved in utils)
* Reduce code duplication (requests session configuring)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-20 10:50:06 +00:00
9d82c727b6
[shortener] move service-depend init code to functions
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-20 06:12:10 +00:00
c425d86ed6
[shortener] remove not completed bitly support code
...
Anyone can request to add support later, so for now I removing that code due to lack of use.
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-20 06:00:08 +00:00
3ed06686ab
Codacy: fix W0106
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-19 00:10:39 +00:00
7e4fb0a8c4
split encrypt and decrypt code in separated functions by paste version
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 23:48:46 +00:00
ebfe0c48a0
[shortener] separate services related code in functions
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 23:22:56 +00:00
45d854e590
[shortener] add is.gd, v.gd and cutt.ly services support
...
Start realisation of bitly support.
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 21:09:16 +00:00
18d79c8e04
add .gitattributes
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 19:07:15 +00:00
92c38344e3
add tinyurl support
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 19:01:41 +00:00
b596f42b7e
fix response handler ( closes #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 13:46:30 +00:00
86c5051fcf
move 'requests' configuration code in separate function
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 12:02:41 +00:00
f838f8ee94
fix codacy issues
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 11:43:44 +00:00
fb7a93732d
rewrite yourls response handler ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 11:27:15 +00:00
181763070c
remove unused import, replace comment definition
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 10:22:58 +00:00
c3a491ac46
correct response store for yourls ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 10:14:44 +00:00
641c55a6a2
fix dict merging ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 13:22:28 +00:00
432675f2e6
url shortener support ( #19 )
...
Currently tested only with clck.ru service. YOURLS test needed.
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 10:54:58 +00:00
635c87dabd
[wip] url shortener support ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 08:55:59 +00:00
6b6c33e545
[wip] url shortener support ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 05:22:57 +00:00
7c5ba2fdbe
add URL validation for trailing slash ( closes #18 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-09 14:23:30 +00:00
692335ee62
0.2.1
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-08-16 21:24:52 +00:00
R4SAS
c63256c628
Merge pull request #16 from firecat53/patch-1
...
Fix swapped "open discussion" and "burn after reading" options order
2019-08-17 00:12:49 +03:00
Scott Hansen
66659da66d
Update format.py
...
The --burn and --discuss flags were switched. This change fixes that.
2019-08-16 12:59:36 -07:00
32d60b5321
0.2
2019-07-24 11:22:37 +00:00
9e9f480075
add description content type
2019-07-16 20:52:15 +00:00
7fc2a1a625
add cert validation ignoring switches ( closes #15 )
2019-07-16 20:32:37 +00:00
8aea956e77
Update function in map iterator
...
Fixes #14 .
Thanks to @mqus for solution.
Taken from https://github.com/PrivateBin/PrivateBin/pull/193#issuecomment-480262590
2019-06-24 01:18:27 +00:00
ac58fff9ce
fix classifiers
2019-06-22 21:13:58 +00:00
7a59d1acd1
0.2-beta1
2019-06-21 16:15:37 +00:00
5c6b9611d8
fix errors
2019-06-21 14:35:45 +00:00
dc034b1d55
update rst readme, remove unused import
2019-06-21 13:32:46 +00:00
5d988e01fc
add codacy badge
2019-06-21 13:15:13 +00:00
85cc1454ea
fixes
2019-06-21 13:12:17 +00:00
f5ef4bbc03
fix v1 decrypt debug message, update readme
2019-06-21 12:43:59 +00:00
8d7a9235b8
add code comments
2019-06-21 11:59:23 +00:00
70f386193a
little refactoring
2019-06-21 11:49:20 +00:00
d37e573d9e
little refactoring
2019-06-19 10:58:41 +00:00
e850b5495a
load zlib globally in format
2019-06-19 10:33:11 +00:00
9390edeb79
reorder argparse, clarify option descriptions
2019-06-07 11:11:53 +00:00
d11beb10af
Make compression optional
...
ref: https://github.com/PrivateBin/PrivateBin/issues/38
Compression is optional only in v2 paste format.
Currently available types: 'zlib' and 'none'.
To set compression use `-c "none"` or `--compression "none".
When receiving paste, compression detected from 'adata' field
2019-06-07 09:16:58 +00:00
4c124a33c0
[v2] encode json for v2, move de/compress to Paste class ( #13 )
2019-06-03 07:18:07 +00:00
5b38c532a2
[wip][v2] json bytes2str in decode ( #13 )
2019-06-02 14:27:53 +00:00
f7fae450a0
[wip] v2 support code ( #13 )
2019-06-02 14:04:38 +00:00
1ff6e721c7
move functions to utils, import functions only where they needed, remove bytified json load
2019-06-01 15:09:57 +00:00
487def2b45
add notext option, fix paste without text handling
...
Now text is taken if no `--notext (-q)` argument is passed.
If that flag used, paste will be created with empty text,
but file for send must be specified
If `notext` arg is not used, text will be taken in next order:
* from `--text (-t)` argument
* from stdin (forcibly)
Here's no ability create paste without any text.
2019-06-01 14:26:17 +00:00