Skip to main content

Module protecting a web framework against password bruteforce attacks

Project description

This is generic RedisSentry documentaion, for django specific notes, see django-redissentry docs.

Installation

This is how RedisSentry can be integrated into any python-powered project (eg Flask):

from redissentry import RedisSentry

def protected_auth(username, password):
    sentry = RedisSentry(ip, username)
    msg = sentry.ask()
    if msg:
        raise Exception(msg)
    res = auth(username, password)
    msg = sentry.inform(bool(res))
    if not res:
        raise Exception('Incorrect username or password. ' + msg)
    return res

where auth() is the original auth function.

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

redissentry-core-0.2.0.zip (6.7 kB view details)

Uploaded Source

File details

Details for the file redissentry-core-0.2.0.zip.

File metadata

File hashes

Hashes for redissentry-core-0.2.0.zip
Algorithm Hash digest
SHA256 6194febd953c9bf0714155a914a52917efd4653acd1a88a8a1d95de3b248c0b5
MD5 ad3eb78bdafe97af88056cb41fb742c6
BLAKE2b-256 15a4bafa747a11c12fa139d492c1ccc224489240074631dd1cf58cd5a20468ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page