-
Notifications
You must be signed in to change notification settings - Fork 8
/
CHANGES
88 lines (75 loc) · 2.5 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
CHANGES
0.4.2
-----
- add support for postgreSQL
- add field classes for additional datatypes:
EncryptedIntegerField, EncryptedDecimalField, EncryptedDateField
EncryptedDateTimeField
- empty strings are now encrypted. Only None values are ignored.
- refactor signatures and typing between encrypt and decrypt
- tighten up handling of str/bytes data and typing of signatures for
methods receiving str and/or bytes data.
0.4.1
-----
- CACHE_CRYPTO_KEY_PREFIX, settings attribute to customize the
cache prefix.
0.4.0
-----
- merge functionality of key_creator and key_files into keys module,
simplify and refactor.
- refactor KeyPath
- initialize / create encryption_keys in constructor of Keys class.
- load keys before import_models from AppConfig
- set Keys instance in keys module and import from there instead of
from AppConfig.
- name global Keys instance 'encryption_keys'.
- change settings.KEY_PATH to settings.DJANGO_CRYPTO_FIELDS_KEY_PATH.
(settings.KEY_PATH will still work)
- change settings.AUTO_CREATE_KEYS to
settings.DJANGO_CRYPTO_FIELDS_AUTO_CREATE.
(settings.AUTO_CREATE_KEYS will still work)
- use pathlib instead of os
- remove system checks, instead raise exceptions when Keys is instantiated.
- correctly decode hash_value before storing in DB
- add migration to remove "b'" from hash_values stored in the DB.
You need to run the migration! The migration fixes previously
saved `hash_values` by removing the `b'` prefix and the `'` at the
end. This only applies to `hash_values` in the `Crypt` model.
- use Django cache to store hash/secret pairs in runtime, prefix
cache keys with `django-crypto-fields`.
- add typing hints, reduce complexity.
0.3.10
------
- update testing matrix to include DJ50. Drop DJ41.
0.3.9
-----
- add minor migration to add locale fields thru django-audit-fields
0.3.8
-----
- drop support for python < 3.11
- add minor migration triggered by django-audit-fields
0.3.7
-----
- minor: util to get list of encrypted field classes from a model or instance
0.3.6
-----
- minor: setup
0.3.5
-----
- minor: util to detect encrypted fields in a model
0.3.4
-----
- remove `pycryptodome` and require `pycryptodomex`. Update import references.
- drop support for py < 3.8, DJ<3.2
- run tests for py 3.8, 3.9, 3.10 and django 3,2, 4.0, 4.1
- add precommit to config
0.3.0
-----
- add to gh-actions
- run tests for py 3.7, 3.8,3.9 and django 3.0,3.1
0.1.28
------
- improve ability to locate test keys if DEBUG=True
2019-03-03
----------
- switch from pycrypto to pycryotpdome