From b425b5041cf784b7c24abcc82e5573cd79304bf7 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 28 Apr 2018 10:16:13 +0300 Subject: Use 64 bytes long key by default It is padded with zeros to 64 bytes anyway if the length is less. --- src/Sproxy/Server.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Sproxy') diff --git a/src/Sproxy/Server.hs b/src/Sproxy/Server.hs index 809d242..6d8b19c 100644 --- a/src/Sproxy/Server.hs +++ b/src/Sproxy/Server.hs @@ -75,7 +75,7 @@ server configFile = do db <- DB.start (cfHome cf) ds key <- maybe - (Log.info "using new random key" >> getEntropy 32) + (Log.info "using new random key" >> getEntropy 64) (return . pack) (cfKey cf) let settings = -- cgit v1.2.3