aboutsummaryrefslogtreecommitdiff
path: root/Utility/Gpg.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-03 19:44:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-03 19:44:48 -0400
commit9ec525f29489ac76ba5910e2189fbdc86c5ca856 (patch)
tree0ab55964a4b4cf4d239d7878795cafdbd815eefd /Utility/Gpg.hs
parent81d36d84fca7f060bf9e20a0f9075e5d8f52494c (diff)
improve comments and variable names WRT base64 encoded encryption keys
Diffstat (limited to 'Utility/Gpg.hs')
-rw-r--r--Utility/Gpg.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs
index 0c80ecdf3..f6a8b4575 100644
--- a/Utility/Gpg.hs
+++ b/Utility/Gpg.hs
@@ -96,7 +96,10 @@ findPubKeys for = KeyIds . parse <$> readStrict params
{- Creates a block of high-quality random data suitable to use as a cipher.
- It is armored, to avoid newlines, since gpg only reads ciphers up to the
- - first newline. -}
+ - first newline.
+ -
+ - The size is the number of bytes of entropy desired; the data is
+ - base64 encoded, so will have a somewhat longer length. -}
genRandom :: Int -> IO String
genRandom size = readStrict
[ Params "--gen-random --armor"