private string EncryptPassword(string password) { if (string.IsNullOrEmpty(password)) { return(string.Empty); } var strEncryptionKey = _connection.bcGetEncryptionKey(); var encryptedPassword = Visma.Core.Security.CryptoServices.CredentialEncryption.Encrypt(password, strEncryptionKey); return("6C783FE0-B7D2-11DD-8B01-CB9755D89593" + encryptedPassword); }