Skip to content

Releases: ShahriyarR/py-read-once

v1.1.3

13 Jun 22:34
831efbf
Compare
Choose a tag to compare

Complete rewrite from class attributes version to instance attributes.

Related to:
ShahriyarR/one-time-secret-share#34

v1.0.3

21 May 14:27
bca5a95
Compare
Choose a tag to compare

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

05 Dec 10:34
7094b5b
Compare
Choose a tag to compare
  • Implement constraints using Design by Contract principles
  • Introduce iconcract as dependency
  • Update README

v1.0.1

04 Dec 19:19
b44fbd9
Compare
Choose a tag to compare
  • Prevent adding secret after consuming.
  • Prevent direct access to protected members.
  • Add documentation for Dataclasses and Pydantic models.

v1.0.0

03 Dec 22:45
bcb7940
Compare
Choose a tag to compare
  • Initial release

v0.01

03 Dec 22:39
c19ee25
Compare
Choose a tag to compare
  • Initial release