Base64

Base64 正向,逆向

点击查看代码
using System.Text;

    var basicAuthorization = Convert.ToBase64String(Encoding.UTF8.GetBytes("AAA:123456"));
    Console.WriteLine(basicAuthorization);

    var basic = Encoding.UTF8.GetString(Convert.FromBase64String(basicAuthorization)).Split(':');
    Console.WriteLine(string.Join(",", basic));

传送门: Tyr

posted @ 2024-05-03 15:36  Cyber9527  阅读(6)  评论(0编辑  收藏  举报