The crypto-pubkey-openssh package

[Tags:library, mit, test]

OpenSSH keys decoder/encoder

[Skip to Readme]


Versions 0.0.0, 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7
Dependencies asn1-encoding, asn1-types, attoparsec, base (>=4.5 && <5), base64-bytestring, bytestring, cereal, crypto-pubkey-types, pem [details]
License MIT
Copyright Fedor Gogolev <>
Author Fedor Gogolev <> Maxim Mitroshin <> Thomas DuBuisson <>
Maintainer Fedor Gogolev <>
Stability Alpha
Category Cryptography, Parsing
Home page
Bug tracker
Source repository head: git clone
Uploaded Wed Jan 21 07:19:54 UTC 2015 by FedorGogolev
Distributions Debian:0.2.7, NixOS:0.2.7
Downloads 2301 total (29 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-01-21 [all 1 reports]




opensshTest with ssh-keygenDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for crypto-pubkey-openssh

Readme for crypto-pubkey-openssh-0.2.7

crypto-pubkey-openssh Build Status

OpenSSH keys decoder/encoder, example.

import System.Environment (getArgs)
import qualified Data.ByteString as B

import Crypto.PubKey.OpenSsh (decodePrivate)

main :: IO ()
main = do
    fname <- fmap head getArgs
    content <- B.readFile fname
    case decodePrivate content of
        Left e -> error e
        Right key -> print key