[Python] Is Fernet implementation threadsafe?

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have the following code

    from cryptography.fernet import Fernet
    encryption_key="...."
    fernet_instance = Fernet(encryption_key)
    encoded_value = fernet_instance.encrypt("some text").decode()


    Is Fernet implementation thread safe? can I use the same instance to concurrently encrypt different strings in different threads?

    Continue reading...

Compartilhe esta Página