public Credentials GetCredentials() { var encryptedCredentials = configurationManager.RetreiveConfiguration(config => config.IoTConfiguration); Credentials credentials = new Credentials() { Login = cipherService.DecodeString(encryptedCredentials.SerialNumberEncrypted), Password = cipherService.DecodeString(encryptedCredentials.PasswordEncrypted) }; return(credentials); }
private string GetOriginalServiceDataJson(byte[] importFileContent) { string serviceDataJsonEncoded = Encoding.UTF8.GetString(importFileContent); return(_cipherService.DecodeString(serviceDataJsonEncoded)); }