The crypto-pubkey-openssh package

[Tags:library, mit]

OpenSSH keys decoder/encoder


[Skip to Readme]

Properties

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 <knsd@knsd.net>
Author Fedor Gogolev <knsd@knsd.net> Maxim Mitroshin <rocco66max@gmail.com> Thomas DuBuisson <thomas.dubuisson@gmail.com>
Maintainer Fedor Gogolev <knsd@knsd.net>
Stability Alpha
Category Cryptography, Parsing
Home page https://github.com/knsd/crypto-pubkey-openssh
Bug tracker https://github.com/knsd/crypto-pubkey-openssh/issues
Source repository head: git clone https://github.com/knsd/crypto-pubkey-openssh
Uploaded Wed Jan 21 07:19:54 UTC 2015 by FedorGogolev
Distributions Debian:0.2.7, NixOS:0.2.7
Downloads 2230 total (24 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-01-21 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
opensshTest with ssh-keygenDisabledAutomatic

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

Downloads

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