Open tourer-zc opened 7 months ago
and you can try uncoment this for see what hapening.
package main
import (
"encoding/base64"
"encoding/hex"
"fmt"
"github.com/mraksoll4/yespower_go"
)
func main() {
newsalt, _ := base64.RawURLEncoding.DecodeString("nUQ1haLSJODMAlSVUV5NGUw.")
newpass := []byte("Hillstone!1")
pass := yespower.Yescrypt(newpass, 4096, 32, string(newsalt))
byt, _ := hex.DecodeString(pass)
encoded := base64.StdEncoding.EncodeToString(byt)
fmt.Println(encoded, len(encoded))
}
i have an encrypted data $y$j9T$nUQ1haLSJODMAlSVUV5NGUw.$tLzBKbQ6ujjnayVUk2/GG1OjhWMqoVJ/05fXYhZH0QD, the real password is
Hillstone!1
. But i can not get the encrypted data with the follwing code:Could you tell me what's wrong in my code?