Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use stronger cipher for secure storage #285

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Equinox security tests
Bundle-SymbolicName: org.eclipse.equinox.security.tests;singleton:=true
Bundle-Version: 1.3.0.qualifier
Bundle-Version: 1.3.100.qualifier
Bundle-Activator: org.eclipse.equinox.internal.security.tests.SecurityTestsActivator
Bundle-RequiredExecutionEnvironment: JavaSE-17
Bundle-Vendor: Eclipse.org
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public void testIncorrectData() throws IOException {
try {
node.get("password1", "default");
} catch (StorageException e) {
assertEquals(StorageException.DECRYPTION_ERROR, e.getErrorCode());
assertEquals(StorageException.INTERNAL_ERROR, e.getErrorCode());
exception = true;
}
assertTrue(exception);
Expand All @@ -428,7 +428,7 @@ public void testIncorrectData() throws IOException {
try {
node.get("password2", "default");
} catch (StorageException e) {
assertEquals(StorageException.DECRYPTION_ERROR, e.getErrorCode());
assertEquals(StorageException.INTERNAL_ERROR, e.getErrorCode());
exception = true;
}
assertTrue(exception);
Expand All @@ -452,7 +452,7 @@ public void testIncorrectPassword() throws IOException {
try {
node.get("password", "default");
} catch (StorageException e) {
assertEquals(StorageException.DECRYPTION_ERROR, e.getErrorCode());
assertEquals(StorageException.INTERNAL_ERROR, e.getErrorCode());
exception = true;
}
assertTrue(exception);
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.equinox.security/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.equinox.security;singleton:=true
Bundle-Version: 1.4.0.qualifier
Bundle-Version: 1.4.100.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-Activator: org.eclipse.equinox.internal.security.auth.AuthPlugin
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.equinox.security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</parent>
<groupId>org.eclipse.equinox</groupId>
<artifactId>org.eclipse.equinox.security</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.100-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public interface IStorageConstants {
/**
* Default cipher algorithm to use in secure storage
*/
public String DEFAULT_CIPHER = "PBEWithMD5AndDES"; //$NON-NLS-1$
public String DEFAULT_CIPHER = "PBEWithHmacSHA512AndAES_256"; //$NON-NLS-1$

/**
* Default key factory algorithm to use in secure storage
*/
public String DEFAULT_KEY_FACTORY = "PBEWithMD5AndDES"; //$NON-NLS-1$
public String DEFAULT_KEY_FACTORY = "PBEWithHmacSHA512AndAES_256"; //$NON-NLS-1$

/**
* Preference contains list of disabled password provider modules
Expand Down
Loading