Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DCR] Decred - Hybrid PoW/PoS | btcsuite Devs | Tons of New Features | Go
by
elbandi
on 18/02/2016, 23:22:40 UTC
Sorry, I can't, forgive me a computer idiot Huh

this code:
Code:
package main
import (
        "github.com/decred/dcrwallet/pgpwordlist"
        "encoding/hex"
        "fmt"
        "bufio"
        "os"
        "strings"
)
func main() {
        reader := bufio.NewReader(os.Stdin)
        fmt.Print("Enter hex: ")
        hexStr, err := reader.ReadString('\n')
        if err != nil {
                panic(err)
        }

        hexStrTrimmed := strings.TrimSpace(hexStr)

        bytes, err := hex.DecodeString(hexStrTrimmed) // "e92cfab0018f6519f885c13939687de14c2b8f6e3e5a55dfa6e3861ba9a105d5"
        if err != nil {
                panic(err)
        }
        words, err := pgpwordlist.ToStringChecksum(bytes)
        if err != nil {
                panic(err)
        }
        fmt.Printf("words: %s\n", words)
}
compiled here: https://www.dropbox.com/s/72x1naur5riws14/wordrecover.zip?dl=0

you can run it on a virtual machinve without internet connection, if you want.