I have a string that is encoded/encrypted using the following C# code:
public static string Encode(string text)
{
if (!Enabled)
return text;
return "~/Enc/" + System.Convert.ToBase64String(
System.Text.ASCIIEncoding.ASCII.GetBytes(text));
}
How can I decode/decrypt it on the client side and get the original string before it was encoded/encrypted?
I've already tried atob(encodedString) and it doesn't return the original value.