Releases: ShahriyarR/py-read-once
Releases · ShahriyarR/py-read-once
v1.1.3
Complete rewrite from class attributes version to instance attributes.
Related to:
ShahriyarR/one-time-secret-share#34
v1.0.3
My idea is to leverage the Fernet class from the cryptography library:
https://cryptography.io/en/latest/fernet/
Fernet guarantees that a message encrypted using it cannot be manipulated or read without the key. Fernet is an implementation of symmetric (also known as “secret key”) authenticated cryptography.
Generate a key while using add_secret or while using the class constructor.
Store the key internally during the life of the class instance.
Harden the access to the key.
The secret should be stored as a token.
Decrypt the secret value when using get_secret.
If the secret value is retrieved remove/reset the key.
If the new secret was added over the old secret, generate a new key and use it for encryption - the old key must be removed.
v1.0.2
- Implement constraints using Design by Contract principles
- Introduce
iconcract
as dependency - Update README
v1.0.1
- Prevent adding secret after consuming.
- Prevent direct access to protected members.
- Add documentation for Dataclasses and Pydantic models.
v1.0.0
- Initial release
v0.01
- Initial release