https://github.com/jeremmfr/junosdecode
Library to decode Juniper secret hashes ($9$)
https://github.com/jeremmfr/junosdecode
decode golang hashes junos
Last synced: 4 months ago
JSON representation
Library to decode Juniper secret hashes ($9$)
- Host: GitHub
- URL: https://github.com/jeremmfr/junosdecode
- Owner: jeremmfr
- License: mit
- Created: 2019-09-10T09:41:01.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-12-04T09:24:39.000Z (6 months ago)
- Last Synced: 2025-12-07T17:10:27.041Z (6 months ago)
- Topics: decode, golang, hashes, junos
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# junosdecode
[](https://pkg.go.dev/github.com/jeremmfr/junosdecode)
[](https://github.com/jeremmfr/junosdecode/releases)
[](https://goreportcard.com/report/github.com/jeremmfr/junosdecode)
[](https://github.com/jeremmfr/junosdecode/actions)
[](https://github.com/jeremmfr/junosdecode/actions)
[](https://codecov.io/gh/jeremmfr/junosdecode)
Library to decode Juniper secret hashes (`$9$`)
Based on [Crypt-Juniper](http://search.cpan.org/dist/Crypt-Juniper/lib/Crypt/Juniper.pm) and [taktv6/junoscrypt](https://github.com/taktv6/junoscrypt)
## Usage
```go
package main
import (
"fmt"
"github.com/jeremmfr/junosdecode"
)
func main() {
junWordCoded := "$9$1HFIyKXxdsgJ-VH.Pfn6lKMXdsZUi5Qnikfz"
if passwordDecoded, err := junosdecode.Decode(junWordCoded); err != nil {
fmt.Print(err.Error())
} else {
fmt.Print(passwordDecoded)
}
}
```
Play : [here](https://play.golang.org/p/tibSxKFM_zx)