private string EncryptNodeCredentials(NodeCredential nodeCredential) { var row = $"{nodeCredential.Node.ToIdentity().ToString()}:{nodeCredential.Authorization}"; return(_aESEncryptor.Encrypt(row)); }
public void AddNodeCredentials(NodeCredential nodeCredential) { File.AppendAllText(SETTINGS_FILE_PATH, EncryptNodeCredentials(nodeCredential)); }