Encrypted datastore #9

Open
opened 2018-08-14 22:34:15 +03:00 by MasseR · 0 comments
Owner

Reading public keys:

Right [Right (Right (PubKeyRSA pubkey, _))] <- fmap (fmap (fmap fromASN1 . decodeASN1' DER . pemContent)) . pemParseBS <$> B.readFile "pub_key.pem"

Reading private keys:

[PrivKeyRSA privkey] <- readKeyFile "priv_key.pem"
**Reading public keys:** ~~~.Haskell Right [Right (Right (PubKeyRSA pubkey, _))] <- fmap (fmap (fmap fromASN1 . decodeASN1' DER . pemContent)) . pemParseBS <$> B.readFile "pub_key.pem" ~~~ **Reading private keys:** ~~~.Haskell [PrivKeyRSA privkey] <- readKeyFile "priv_key.pem" ~~~
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MasseR/ebook-manager#9
No description provided.