improve comments and variable names WRT base64 encoded encryption keys

This commit is contained in:
Joey Hess 2013-03-03 19:44:48 -04:00
parent 0b236edba9
commit 13cfe5c582
2 changed files with 17 additions and 11 deletions

View file

@ -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"