use of com.biglybt.ui.console.util.StringEncrypter.EncryptionException in project BiglyBT by BiglySoftware.
the class UserProfile method setPassword.
/**
* stores the specified password as an encrypted password
* @param password The password to set.
*/
public void setPassword(String password) {
try {
StringEncrypter encrypter = new StringEncrypter(StringEncrypter.DES_ENCRYPTION_SCHEME);
setEncryptedPassword(encrypter.encrypt(password));
} catch (EncryptionException e) {
throw new CoreException("Unable to encrypt password", e);
}
}
Aggregations