[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Use SHA-512 for bootloader password encryption



From: Miloslav Trmač <mitr redhat com>

... when the password is configured in kickstart unencrypted or set in the GUI.

Related: rhbz#554874
---
 pyanaconda/booty/x86.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/booty/x86.py b/pyanaconda/booty/x86.py
index defd1fa..224e0bf 100644
--- a/pyanaconda/booty/x86.py
+++ b/pyanaconda/booty/x86.py
@@ -25,8 +25,8 @@ class x86BootloaderInfo(efiBootloaderInfo):
             self.password = val
             self.pure = None
         else:
-            salt = "$1$"
-            saltLen = 8
+            salt = "$6$"
+            saltLen = 16
 
             saltchars = string.letters + string.digits + './'
             for i in range(saltLen):
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]