From c11e0e46b49759a2a0017e32d43e166c88a979a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 6 Dec 2018 12:16:52 +0100 Subject: [PATCH] Change default secret algorithm to sha256 --- app/devices/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/devices/models.py b/app/devices/models.py index e390983..17c4539 100644 --- a/app/devices/models.py +++ b/app/devices/models.py @@ -144,7 +144,7 @@ class Device(db.Model): self.name = name self.configuration = configuration self.device_type_id = device_type - self.secret_algorithm = 'sha512' + self.secret_algorithm = 'sha256' self.device_secret = token_urlsafe(32) def save(self):