//字元串轉bytes var ebytes = System.Text.Encoding.Default.GetBytes(keyWord); //bytes進行base64加密 var strBase64 = Convert.ToBase64String(ebytes); //base64字元轉 ...
//字元串轉bytes
var ebytes = System.Text.Encoding.Default.GetBytes(keyWord);
//bytes進行base64加密
var strBase64 = Convert.ToBase64String(ebytes);
//base64字元轉bytes
var dbytes = Convert.FromBase64String(strBase64);
////bytes進行解密為原始字元串
var str = System.Text.Encoding.Default.GetString(dbytes);