Skip to content

README does not mention lack of anti-replay #27

@Sandwichs-del

Description

@Sandwichs-del

Fernet is the default cipher available in python-cryptography.
This unfortunately means that it will be (ab)used for things other than just token signing.

I believe it would be prudent to stress in the README that users need provide their own anti-replay mechanisms, or at least use the ttl attribute of decrypt()

One way for users of Fernet (or even Fernet itself) to do this would be to use a monotonic clock for sent timestamps and then enforce monotonicity for received timestamps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions