zhanghongbo 9 жил өмнө
parent
commit
730fef8038

+ 6 - 0
common/src/qfw/util/encrypt_test.go

@@ -58,3 +58,9 @@ func Test_int(t *testing.T) {
 	var s int64 = 3
 	log.Println(IntAllDef(s, -2))
 }
+
+func TestActivity(t *testing.T) {
+	se := SimpleEncrypt{Key: "topnet2015topnet2015"}
+	tmp := se.EncodeString("oZQC_s7VTU3p9SrhU27gA5v2MDk0")
+	log.Println(tmp, se.DecodeString(tmp))
+}