Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moul/go-sshkeys
:wrench: Golang SSH Keys manipulation library
https://github.com/moul/go-sshkeys
Last synced: 2 months ago
JSON representation
:wrench: Golang SSH Keys manipulation library
- Host: GitHub
- URL: https://github.com/moul/go-sshkeys
- Owner: moul
- License: mit
- Created: 2015-09-01T22:47:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T17:22:24.000Z (7 months ago)
- Last Synced: 2024-02-21T22:34:14.420Z (4 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-ssh - go-sshkeys - Golang SSH Keys manipulation library (Libraries / Alternatives to *SSH*)
- awesome-ssh - go-sshkeys - Golang SSH Keys manipulation library (Libraries / Alternatives to *SSH*)
- awesome-ssh - go-sshkeys - Golang SSH Keys manipulation library (Libraries / Alternatives to *SSH*)
README
# go-sshkeys
:wrench: Golang SSH Keys manipulation library[![GoDoc](https://godoc.org/github.com/moul/go-sshkeys?status.svg)](https://godoc.org/github.com/moul/go-sshkeys)
## Install
```console
$ go get github.com/moul/go-sshkeys
```## Example
```go
import "github.com/moul/go-sshkeys"sshkey, _ := sshkeys.NewSSHKey([]byte("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApvPvDbWDY50Lsx4WyUInw407379iERte63OTTNae6+JgAeYsn52Z43Oeks/2qC0gxweq+sRY9ccqhfReie+r+mvl756T4G8lxX1ND8m6lZ9kM30Rvk0piZn3scF45spmLNzCNXza/Hagxy53P82ej2vq2ewXtjVdvW20G3cMHVLkcdgKJN+2s+UkSYlASW6enUj3no+bukT+6M8lJtlT0/0mZtnBRJtqCCvF0cm9xU0uxILrhIfdYAJ1XqaoqIQLFSDLVo5lILMzDNwV+CfAotRMWIKvWomCszhVQYHCQo2Z+b2Gs0TL4DRb23fRMdeaRufnVhh5ZMlNkb2ajaL6sw== [email protected]"))
fmt.Println(sshkey.Hash())
// Output: 7d:c7:69:37:2b:5f:84:36:db:75:98:44:db:b8:1a:36
```## License
MIT