mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-09 00:34:14 +08:00
17 lines
415 B
C#
17 lines
415 B
C#
using System;
|
|
|
|
namespace BetterGenshinImpact.Helpers;
|
|
|
|
public static class Base64Helper
|
|
{
|
|
public static string DecodeToString(string base64String)
|
|
{
|
|
byte[] bytes = Convert.FromBase64String(base64String);
|
|
return System.Text.Encoding.UTF8.GetString(bytes);
|
|
}
|
|
|
|
public static byte[] DecodeToBytes(string base64String)
|
|
{
|
|
return Convert.FromBase64String(base64String);
|
|
}
|
|
} |