getsecure


Namegetsecure JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/maratsh/getsecure
SummaryUtility for securing expiring links
upload_time2024-08-06 11:49:19
maintainerNone
docs_urlNone
authormaratsh
requires_python<4.0,>=3.7
licenseMIT
keywords nginx secure_ling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # getsecure

Utility for securing expiring links

## Usage

### Add to nginx vhost secure location section like this

```nginx
    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

```bash
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

```bash
python secure.py /secret_page.html <put here secret string> --period=30
/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```

where period is days from now to future when link should work


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/maratsh/getsecure",
    "name": "getsecure",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.7",
    "maintainer_email": null,
    "keywords": "nginx, secure_ling",
    "author": "maratsh",
    "author_email": "ya@maratsh.ru",
    "download_url": "https://files.pythonhosted.org/packages/3e/b4/e469995200c7245d74d3e6689e7870e7a731967e30c82f3a6526448e1e47/getsecure-0.0.8.tar.gz",
    "platform": null,
    "description": "# getsecure\n\nUtility for securing expiring links\n\n## Usage\n\n### Add to nginx vhost secure location section like this\n\n```nginx\n    location /secret_page.html {\n     secure_link $arg_md5,$arg_expires;\n     secure_link_md5 \"$secure_link_expires$uri <put here secret string>\";\n\n     if ($secure_link = \"\") {\n         return 403;\n     }\n\n     if ($secure_link = \"0\") {\n         return 410;\n     }\n    }\n```\n\n### Get secure link\n\n```bash\npython secure.py http://example.com/secret_page.html <put here secret string> --period=30\nhttp://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041\n```\n\nor\n\n```bash\npython secure.py /secret_page.html <put here secret string> --period=30\n/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041\n```\n\nwhere period is days from now to future when link should work\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Utility for securing expiring links",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/maratsh/getsecure",
        "Repository": "https://github.com/maratsh/getsecure"
    },
    "split_keywords": [
        "nginx",
        " secure_ling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "126f7f9f233ca646a375f6d56b4a8295b8921203409cb3df2ae790fe20aeda3b",
                "md5": "f3b9e6debf13f5a27feb9b88a709fcc9",
                "sha256": "34d5f01f4077d5f797f778c52dfd402ef492c820fa03598f37f3ee46966643de"
            },
            "downloads": -1,
            "filename": "getsecure-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f3b9e6debf13f5a27feb9b88a709fcc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.7",
            "size": 2853,
            "upload_time": "2024-08-06T11:49:18",
            "upload_time_iso_8601": "2024-08-06T11:49:18.179130Z",
            "url": "https://files.pythonhosted.org/packages/12/6f/7f9f233ca646a375f6d56b4a8295b8921203409cb3df2ae790fe20aeda3b/getsecure-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3eb4e469995200c7245d74d3e6689e7870e7a731967e30c82f3a6526448e1e47",
                "md5": "572a354420ba5e177a2ddf786dac212b",
                "sha256": "eeee782d082b595b58d2969ee6639399b64e3f1d993da2498f56bd6a9e19d470"
            },
            "downloads": -1,
            "filename": "getsecure-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "572a354420ba5e177a2ddf786dac212b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.7",
            "size": 2324,
            "upload_time": "2024-08-06T11:49:19",
            "upload_time_iso_8601": "2024-08-06T11:49:19.493703Z",
            "url": "https://files.pythonhosted.org/packages/3e/b4/e469995200c7245d74d3e6689e7870e7a731967e30c82f3a6526448e1e47/getsecure-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-06 11:49:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "maratsh",
    "github_project": "getsecure",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "getsecure"
}
        
Elapsed time: 0.43750s