定義rsa,參見相關資料。
中文轉碼爲URL中可見的字符:
byte[] name = rsa.Encrypt(HttpUtility.UrlEncode("長風吹雪", new UTF8Encoding()));
byte[] text = rsa.Decrypt(name);
string value = HttpUtility.UrlDecode(RSAUtils.UTF8BytesToString(text), new UTF8Encoding());