You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
283 B

package crypto
import (
"fmt"
"testing"
)
var cryptoTool Crypto
func TestMd5(tt *testing.T) {
fmt.Println(cryptoTool.Md5Encode("hello world!"))
//fc3ff98e8c6a0d3087d515c0473f8677
fmt.Println(cryptoTool.Md5Check("hello world!", "fc3ff98e8c6a0d3087d515c0473f8677"))
//true
}