Skip to content

Problem with cryptography_manager and FileSystemTokenBackend #1200

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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