Deobfuscate() public static method

Deobfuscate a string.
public static Deobfuscate ( string value ) : string
value string The string to deobfuscate
return string
Ejemplo n.º 1
0
 public string ToString()
 {
     if (password == null)
     {
         return(null);
     }
     return(Crypto.Deobfuscate(password));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Connect to a CMIS server and get the list of repositories.
        /// This method takes a obfuscated password, unlike the next method.
        /// </summary>
        public static IList <IRepository> GetCmisRepositories(Uri url, string user, string obfuscatedPassword)
        {
            Dictionary <string, string> parameters = GetParameters();

            parameters[SessionParameter.AtomPubUrl] = url.ToString();
            parameters[SessionParameter.User]       = user;
            parameters[SessionParameter.Password]   = Crypto.Deobfuscate(obfuscatedPassword);

            // Create session factory.
            SessionFactory factory = SessionFactory.NewInstance();

            // Return repositories.
            return(factory.GetRepositories(parameters));
        }