Skip to content

Problem with cryptography_manager and FileSystemTokenBackend #1200

@easinus

Description

@easinus

class CryptographyManagerType(Protocol):
"""Abstract cryptography manager"""

def encrypt(self, data: str) -> bytes: ...

def decrypt(self, data: bytes) -> str: ...

is incompatible with FileSystemTokenBackend write and read operations. These operations expect text (strings) not bytes.

Cryptography manager with

def encrypt(self, data: str) -> str: ...

def decrypt(self, data: str) -> str: ...

works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions