mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
15 lines
259 B
Go
15 lines
259 B
Go
package common
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestEncryption(t *testing.T) {
|
|
encrypted := EncryptTypeX([]byte("key"), []byte("challenge"), []byte("data"))
|
|
for i := 0; i < len(encrypted); i++ {
|
|
fmt.Printf("%02x ", encrypted[i])
|
|
}
|
|
fmt.Printf("\n")
|
|
}
|