1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-22 19:20:54 +00:00

Switch from md5 to sha256 for UIDs and tokens

This commit is contained in:
Unrud 2020-01-15 11:20:48 +01:00
parent 6697a6c8c4
commit c99a1f53df
5 changed files with 13 additions and 12 deletions

View file

@ -19,7 +19,7 @@
import os
import pickle
import time
from hashlib import md5
from hashlib import sha256
from radicale import pathutils, storage
from radicale.log import logger
@ -54,7 +54,7 @@ class CollectionCacheMixin:
self._storage._sync_directory(folder)
def _item_cache_hash(self, raw_text):
_hash = md5()
_hash = sha256()
_hash.update(storage.CACHE_VERSION)
_hash.update(raw_text)
return _hash.hexdigest()