Skip to content

Instantly share code, notes, and snippets.

View Frederic-Zhou's full-sized avatar
🏠
Working

Frederic Frederic-Zhou

🏠
Working
View GitHub Profile
@Frederic-Zhou
Frederic-Zhou / pwd_test.go
Last active October 21, 2016 10:23
Example with XOR algorithm for reversible encryption, 用异或算法进行可逆加密算法范例
package tests
import (
"fmt"
"testing"
)
// 可逆加密简单算法测试,采用异或方式
func TestPwd(t *testing.T) {
pwd := "Hello world!"