Skip to content

Instantly share code, notes, and snippets.

View stopwatch.go
package main
import (
"syscall"
"time"
"unsafe"
)
const (
TickPerMillisecond int64 = 0x2710
@jimwei
jimwei / encrypt_decrypt.go
Last active Jan 5, 2016
translate donet DESCryptoServiceProvider
View encrypt_decrypt.go
/*public static string DecryptStringEx(string source)
{
//判断是否为空字符串
if (string.IsNullOrEmpty(source))
{
//直接返回原字符串
return source;
}
//获得要解密的数据