/// <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); }
/// <summary> /// get an encrypted aythentication /// </summary> /// <returns>returns the encrypted authentication</returns> public string[] getEncrypted() { return(new[] { StringCipher.Decrypt(name), StringCipher.Decrypt(password) }); }