Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knsd/crypto-pubkey-openssh
OpenSSH keys decoder/encoder
https://github.com/knsd/crypto-pubkey-openssh
Last synced: 2 months ago
JSON representation
OpenSSH keys decoder/encoder
- Host: GitHub
- URL: https://github.com/knsd/crypto-pubkey-openssh
- Owner: knsd
- License: mit
- Created: 2013-01-19T12:10:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T18:06:39.000Z (over 2 years ago)
- Last Synced: 2024-04-25T23:31:23.546Z (8 months ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/crypto-pubkey-openssh
- Size: 386 KB
- Stars: 7
- Watchers: 3
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
crypto-pubkey-openssh [![Build Status](https://secure.travis-ci.org/knsd/crypto-pubkey-openssh.png)](http://travis-ci.org/knsd/crypto-pubkey-openssh)
=====================OpenSSH keys decoder/encoder, example.
```haskell
import System.Environment (getArgs)
import qualified Data.ByteString as Bimport 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
```