crypto-pubkey-openssh: OpenSSH keys decoder/encoder

[ cryptography, library, mit, parsing ] [ Propose Tags ] [ Report a vulnerability ]

OpenSSH keys decoder/encoder


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
openssh

Test with ssh-keygen

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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]
Tested with ghc >=7.6 && <7.7
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>
Category Cryptography, Parsing
Home page https://github.com/knsd/crypto-pubkey-openssh
Bug tracker https://github.com/knsd/crypto-pubkey-openssh/issues
Source repo head: git clone https://github.com/knsd/crypto-pubkey-openssh
Uploaded by FedorGogolev at 2015-01-21T07:19:54Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 8621 total (28 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-01-21 [all 1 reports]

Readme for crypto-pubkey-openssh-0.2.7

[back to package description]

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