Utility for securing expiring links
Project description
# getsecure
Utility for securing expiring links
#Usage
##Add to nginx vhost secure location section like this
```
location /secret_page.html {
secure_link $arg_md5,$arg_expires;
secure_link_md5 "$secure_link_expires$uri <put here secret string>";
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
}
```
##Get secure link
```
-> python secure.py http://example.com/secret_page.html <put here secret string> --period=30
http://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```
or
```
-> python secure.py /secret_page.html <put here secret string> --period=30
/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```
Utility for securing expiring links
#Usage
##Add to nginx vhost secure location section like this
```
location /secret_page.html {
secure_link $arg_md5,$arg_expires;
secure_link_md5 "$secure_link_expires$uri <put here secret string>";
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
}
```
##Get secure link
```
-> python secure.py http://example.com/secret_page.html <put here secret string> --period=30
http://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```
or
```
-> python secure.py /secret_page.html <put here secret string> --period=30
/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getsecure-0.0.2.tar.gz
(1.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getsecure-0.0.2.tar.gz.
File metadata
- Download URL: getsecure-0.0.2.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77e95f29bdbb51fbf9a18e4a8fa0bc511632df74e2c5b1853b0fbb496dcebe94
|
|
| MD5 |
01d08d5cee30c6d5f6609ebb15a84465
|
|
| BLAKE2b-256 |
1c7ac6c8efd2a727d2fcac4ed25e925042d3f7368764d111e5a9ba4fc776d19d
|
File details
Details for the file getsecure-0.0.2-py3-none-any.whl.
File metadata
- Download URL: getsecure-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
991c3e34e5553430bd55c6969a18140c830ccaead2a46bfbcf60886190db4351
|
|
| MD5 |
5a5d604d58b8bc5746b5c0610bea8522
|
|
| BLAKE2b-256 |
cc616ec65f1cac5971c2f0ba3259cad0fa6f5ce283428406a7e1cbffbf42601f
|