Safe Haskell | None |
---|---|
Language | Haskell98 |
Pdf.Toolbox.Document.Encryption
Description
Basic support for encrypted PDF documents
- type Decryptor = Ref -> DecryptorScope -> IS -> IO IS
- defaultUserPassword :: ByteString
- mkStandardDecryptor :: Monad m => Dict -> Dict -> ByteString -> PdfE m (Maybe Decryptor)
- decryptObject :: (IS -> IO IS) -> Object a -> IO (Object a)
- data DecryptorScope
Documentation
defaultUserPassword :: ByteString Source
The default user password
Arguments
:: Monad m | |
=> Dict | document trailer |
-> Dict | encryption dictionary |
-> ByteString | user password (32 bytes exactly, see 7.6.3.3 Encryption Key Algorithm) |
-> PdfE m (Maybe Decryptor) |
Standard decryptor. RC4
data DecryptorScope Source
Encryption handler may specify different encryption keys for strings and streams
Constructors
DecryptString | |
DecryptStream |