Skip to content

Instantly share code, notes, and snippets.

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