The crypto-pubkey-openssh package

[Tags: library, mit]

OpenSSH keys decoder/encoder


[Skip to ReadMe]

Properties

Versions0.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
Change logNone available
Dependenciesasn1-encoding, asn1-types, attoparsec, base (>=4.5 && <5), base64-bytestring, bytestring, cereal, crypto-pubkey-types, pem [details]
LicenseMIT
CopyrightFedor Gogolev <knsd@knsd.net>
AuthorFedor Gogolev <knsd@knsd.net> Maxim Mitroshin <rocco66max@gmail.com> Thomas DuBuisson <thomas.dubuisson@gmail.com>
MaintainerFedor Gogolev <knsd@knsd.net>
StabilityAlpha
CategoryCryptography, Parsing
Home pagehttps://github.com/knsd/crypto-pubkey-openssh
Bug trackerhttps://github.com/knsd/crypto-pubkey-openssh/issues
Source repositoryhead: git clone https://github.com/knsd/crypto-pubkey-openssh
UploadedWed Jan 21 07:19:54 UTC 2015 by FedorGogolev
DistributionsDebian:0.2.7, NixOS:0.2.7
Downloads1628 total (60 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2015-01-21 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefault
opensshTest with ssh-keygenDisabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees

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