Пример #1
0
        private string EncryptNodeCredentials(NodeCredential nodeCredential)
        {
            var row = $"{nodeCredential.Node.ToIdentity().ToString()}:{nodeCredential.Authorization}";

            return(_aESEncryptor.Encrypt(row));
        }
Пример #2
0
 public void AddNodeCredentials(NodeCredential nodeCredential)
 {
     File.AppendAllText(SETTINGS_FILE_PATH, EncryptNodeCredentials(nodeCredential));
 }