diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-06 18:54:55 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-06 18:54:55 +0200 |
commit | 227b277931b3bfbc1d72483e79525f22cde8b242 (patch) | |
tree | aa3052f64c1caab838750ff7182c971af12e6588 /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java | |
parent | d6dd81d4449f437de672395b8f9ba2664c945d4c (diff) | |
download | open-keychain-227b277931b3bfbc1d72483e79525f22cde8b242.tar.gz open-keychain-227b277931b3bfbc1d72483e79525f22cde8b242.tar.bz2 open-keychain-227b277931b3bfbc1d72483e79525f22cde8b242.zip |
sign and encrypt basically working
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java')
-rw-r--r-- | OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java index cd84e4ee2..e0d63d461 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/remote_api/AppSettings.java @@ -23,9 +23,9 @@ public class AppSettings { private String packageName; private long keyId = Id.key.none; private boolean asciiArmor; - private int encryptionAlgorithm = 7; // AES-128 - private int hashAlgorithm = 10; // SHA-512 - private int compression = 2; // zlib + private int encryptionAlgorithm; + private int hashAlgorithm; + private int compression; public AppSettings() { @@ -34,6 +34,11 @@ public class AppSettings { public AppSettings(String packageName) { super(); this.packageName = packageName; + // defaults: + this.asciiArmor = true; + this.encryptionAlgorithm = 7; // AES-128 + this.hashAlgorithm = 10; // SHA-512 + this.compression = 2; // zlib } public String getPackageName() { |