Skip to content

Commit

Permalink
added new idea run configuration for spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
astrapisixtynine committed Jul 9, 2024
1 parent 8547e86 commit 85fd6e6
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 14 deletions.
33 changes: 33 additions & 0 deletions .idea/runConfigurations/mystic_crypt__spotlessApply_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion .idea/runConfigurations/mystic_crypt__spotlessJavaApply_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@

/**
* The class {@link PrivateKeyHexDecryptor} decrypts encrypted characters the was encrypted with the
* public key of the pendant private key of this class. <br>
* <br>
*
* @deprecated use instead the class {@link PrivateKeyHexStringDecryptor}. Note: will be removed in
* next major version.
* public key of the pendant private key of this class.
*/
public final class PrivateKeyHexDecryptor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
/**
* The class {@link PublicKeyHexEncryptor} can encrypt characters with his public key. <br>
* <br>
*
* @deprecated use instead the class {@link PublicKeyHexStringEncryptor}. Note: will be removed in
* next major version.
*/
public final class PublicKeyHexEncryptor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
package io.github.astrapi69.mystic.crypt.simple;

import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertEquals;

import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
Expand Down Expand Up @@ -81,13 +81,12 @@ public void testEncrypt() throws InvalidKeyException, UnsupportedEncodingExcepti

expected = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr,;-)";

encryptor = new SimpleEncryptor(CompoundAlgorithm.PRIVATE_KEY);
encryptor = new SimpleEncryptor(CompoundAlgorithm.PASSWORD);

encrypted = encryptor.encrypt(expected);
decryptor = new SimpleDecryptor(CompoundAlgorithm.PRIVATE_KEY);
decryptor = new SimpleDecryptor(CompoundAlgorithm.PASSWORD);
actual = decryptor.decrypt(encrypted);
assertTrue("String before encryption is not equal after decryption.",
expected.equals(actual));
assertEquals("String before encryption is not equal after decryption.", expected, actual);
}

}

0 comments on commit 85fd6e6

Please sign in to comment.