Exemplo n.º 1
0
 /// <summary>
 ///     set an encrypted authentication
 /// </summary>
 /// <param name="name">string name</param>
 /// <param name="password">string password</param>
 public void setEncrypted(string name, string password)
 {
     this.name     = StringCipher.Encrypt(name);
     this.password = StringCipher.Encrypt(password);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     get an encrypted aythentication
 /// </summary>
 /// <returns>returns the encrypted authentication</returns>
 public string[] getEncrypted()
 {
     return(new[] { StringCipher.Decrypt(name), StringCipher.Decrypt(password) });
 }