Skip to content

Library to decode Juniper secret hashes ($9$)

License

Notifications You must be signed in to change notification settings

jeremmfr/junosdecode

Repository files navigation

junosdecode

Go Reference Release Report Card Go Status Lint Status codecov

Library to decode Juniper secret hashes ($9$)

Based on Crypt-Juniper and taktv6/junoscrypt

Usage

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