Ejemplo n.º 1
0
        /// <summary>
        /// Decodes from Base64
        /// </summary>
        /// <param name="stringToDecode"></param>
        /// <returns></returns>
        public static string Decode(string stringToDecode)
        {
            var encoder = new Base64Encoder(stringToDecode);

            return(encoder.Decode());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Encodes to Base64
        /// </summary>
        /// <param name="stringToEncode"></param>
        /// <returns></returns>
        public static string Encode(string stringToEncode)
        {
            Base64Encoder encoder = new Base64Encoder(stringToEncode);

            return(encoder.Encode());
        }