public static void SetFor(IRuntimeDatabaseConfiguration conf, DatabaseSettingsSerialization.Source source, DatabaseSettingsSerialization.User user, Action <string, string> setter) { var prefix = DatabaseConfigurations.SettingPrefix + "." + source + "." + user + "."; setter(prefix + DatabaseConfigurations.ProviderKeyName, conf.ProviderKey().Serialize()); var wrapper = new MetaDatabaseConfiguration(conf); foreach (var param in wrapper.PersistableParameters) { setter(prefix + param.Name, param.Encrypt? SecureConfidentialInformationEncryption.EncryptMaintainingCompatibility(param.Get()): param.Get()); } }
public static string EncryptMaintainingCompatibility(string text) { return(SecureConfidentialInformationEncryption.EncryptMaintainingCompatibility(text)); }