b11a63a860
Avoid ever using read to parse a non-haskell formatted input string. show :: Key is arguably still show abuse, but displaying Keys as filenames is just too useful to give up.
15 lines
334 B
Haskell
15 lines
334 B
Haskell
{- git-annex crypto types
|
|
-
|
|
- Copyright 2011 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
module Types.Crypto where
|
|
|
|
-- XXX ideally, this would be a locked memory region
|
|
newtype Cipher = Cipher String
|
|
|
|
data EncryptedCipher = EncryptedCipher String KeyIds
|
|
|
|
newtype KeyIds = KeyIds [String]
|