mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-26 23:06:43 -04:00
Cleanup StringUtil
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Common.Extensions
|
||||
{
|
||||
@@ -13,5 +14,8 @@ namespace NzbDrone.Common.Extensions
|
||||
{
|
||||
return BitConverter.GetBytes(input).ToBase64();
|
||||
}
|
||||
|
||||
public static string FromBase64(string str) =>
|
||||
Encoding.UTF8.GetString(Convert.FromBase64String(str));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user