trunk/src/LythumOSL.Security/Base64.cs
/// <summary>
/// Correct BASE64 decoding with specified string encoding
/// </summary>
/// <param name="str">Encoded BASE64 string.</param>
/// <param name="encoding">Encoding</param>
/// <param name="urlSafe">True if to convert to url safe BASE64 string. WARNING! Url safe mode is incompatible with regular BASE64 encoded string format.</param>
/// <returns>UTF16 value</returns>
Correct BASE64 decoding with specified string encoding
Correct BASE64 decoding with specified string encoding
public static string Decode (string str, Encoding encoding, bool urlSafe)
		{
			byte[] decbuff = DecodeToBytes(str, urlSafe);
			return encoding.GetString (decbuff);
		}
public static string Decode ( string str , Encoding encoding , bool urlSafe ) { byte [ ] decbuff = DecodeToBytes ( str , urlSafe ) ; return encoding . GetString ( decbuff ) ; }
Correct BASE64 decoding with specified string encoding
Correct BASE64 decoding with specified string encoding
None
str
string
Encoded BASE64 string.
Encoded BASE64 string .
encoding
Encoding
None
urlSafe
bool
True if to convert to url safe BASE64 string. WARNING. Url safe mode is incompatible with regular BASE64 encoded string format.
True if to convert to url safe BASE64 string . WARNING . Url safe mode is incompatible with regular BASE64 encoded string format .