mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Set default algorithms to SHA-512 and AES-256
This commit is contained in:
parent
f4d3d81333
commit
ac180275fd
@ -88,7 +88,7 @@ public class Preferences {
|
|||||||
|
|
||||||
public int getDefaultHashAlgorithm() {
|
public int getDefaultHashAlgorithm() {
|
||||||
return mSharedPreferences.getInt(Constants.pref.DEFAULT_HASH_ALGORITHM,
|
return mSharedPreferences.getInt(Constants.pref.DEFAULT_HASH_ALGORITHM,
|
||||||
HashAlgorithmTags.SHA256);
|
HashAlgorithmTags.SHA512);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDefaultHashAlgorithm(int value) {
|
public void setDefaultHashAlgorithm(int value) {
|
||||||
|
@ -36,8 +36,8 @@ public class AppSettings {
|
|||||||
super();
|
super();
|
||||||
this.packageName = packageName;
|
this.packageName = packageName;
|
||||||
// defaults:
|
// defaults:
|
||||||
this.encryptionAlgorithm = PGPEncryptedData.AES_128;
|
this.encryptionAlgorithm = PGPEncryptedData.AES_256;
|
||||||
this.hashAlgorithm = HashAlgorithmTags.SHA256;
|
this.hashAlgorithm = HashAlgorithmTags.SHA512;
|
||||||
this.compression = Id.choice.compression.zlib;
|
this.compression = Id.choice.compression.zlib;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user