trunk/src/LythumOSL.Security/Base64.cs
/// <summary>
/// Encode string with specified encoding and url safe option
/// </summary>
/// <param name="str">Data</param>
/// <param name="encoding">Destination 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>Encoded BASE64 string</returns>
Encode string with specified encoding and url safe option
Encode string with specified encoding and url safe option
public static string Encode (string str, Encoding encoding, bool urlSafe)
		{
			byte[] encbuff = encoding.GetBytes (str);
			return Encode (encbuff, urlSafe);
		}
public static string Encode ( string str , Encoding encoding , bool urlSafe ) { byte [ ] encbuff = encoding . GetBytes ( str ) ; return Encode ( encbuff , urlSafe ) ; }
Encode string with specified encoding and url safe option
Encode string with specified encoding and url safe option
Encoded BASE64 string
Encoded BASE64 string
str
string
None
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 .