Package org.syncany.config.to

Examples of org.syncany.config.to.UserConfigTO.save()


    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!
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.