System.err.println();
}
}
private static void writeExampleUserConfigFile(File userConfigFile) {
UserConfigTO userConfigTO = new UserConfigTO();
userConfigTO.getSystemProperties().put("example.property", "This is a demo property. You can delete it.");
userConfigTO.getSystemProperties().put("syncany.rocks", "Yes, it does!");
try {
System.out.println("First launch, creating a secret key (could take a sec)...");
SaltedSecretKey configEncryptionKey = CipherUtil.createMasterKey(CipherUtil.createRandomAlphabeticString(USER_CONFIG_ENCRYPTION_KEY_LENGTH));
userConfigTO.setConfigEncryptionKey(configEncryptionKey);
userConfigTO.save(userConfigFile);
}
catch (Exception e) {
// Don't care!
}
}