test_class.declarator: encryptAlgorithm
test_class.modifier: private
test_class.original_string: private EncryptAlgorithm encryptAlgorithm;
test_class.type: EncryptAlgorithm
test_class.var_name: encryptAlgorithm
test_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/algorithm/AESEncryptAlgorithmTest.java
test_class.identifier: AESEncryptAlgorithmTest
test_case.body: @Test
      public void assertEncrypt() {
          assertThat(encryptAlgorithm.encrypt("test"), is("dSpPiyENQGDUXMKFMJPGWA=="));
      }
test_case.class_method_signature: AESEncryptAlgorithmTest.assertEncrypt()
test_case.full_signature: @Test public void assertEncrypt()
test_case.identifier: assertEncrypt
test_case.invocations: assertThat encrypt is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertEncrypt()
focal_class.declarator: AES_KEY = "aes-key-value"
focal_class.modifier: private static final
focal_class.original_string: private static final String AES_KEY = "aes-key-value";
focal_class.type: String
focal_class.var_name: AES_KEY
focal_class.declarator: props = new Properties()
focal_class.modifier: private
focal_class.original_string: private Properties props = new Properties();
focal_class.type: Properties
focal_class.var_name: props
focal_class.declarator: secretKey
focal_class.modifier: private
focal_class.original_string: private byte[] secretKey;
focal_class.type: byte[]
focal_class.var_name: secretKey
focal_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/algorithm/AESEncryptAlgorithm.java
focal_class.identifier: AESEncryptAlgorithm
focal_class.interfaces: implements EncryptAlgorithm
focal_class.class_method_signature: AESEncryptAlgorithm.init()
focal_class.full_signature: @Override public void init()
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: AESEncryptAlgorithm.createSecretKey()
focal_class.full_signature: private byte[] createSecretKey()
focal_class.identifier: createSecretKey
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] createSecretKey()
focal_class.class_method_signature: AESEncryptAlgorithm.encrypt(final Object plaintext)
focal_class.full_signature: @SneakyThrows(GeneralSecurityException.class) @Override public String encrypt(final Object plaintext)
focal_class.identifier: encrypt
focal_class.modifiers: @SneakyThrows(GeneralSecurityException.class) @Override public
focal_class.parameters: (final Object plaintext)
focal_class.return: String
focal_class.signature: String encrypt(final Object plaintext)
focal_class.class_method_signature: AESEncryptAlgorithm.decrypt(final String ciphertext)
focal_class.full_signature: @SneakyThrows(GeneralSecurityException.class) @Override public Object decrypt(final String ciphertext)
focal_class.identifier: decrypt
focal_class.modifiers: @SneakyThrows(GeneralSecurityException.class) @Override public
focal_class.parameters: (final String ciphertext)
focal_class.return: Object
focal_class.signature: Object decrypt(final String ciphertext)
focal_class.class_method_signature: AESEncryptAlgorithm.getCipher(final int decryptMode)
focal_class.full_signature: private Cipher getCipher(final int decryptMode)
focal_class.identifier: getCipher
focal_class.modifiers: private
focal_class.parameters: (final int decryptMode)
focal_class.return: Cipher
focal_class.signature: Cipher getCipher(final int decryptMode)
focal_class.class_method_signature: AESEncryptAlgorithm.getType()
focal_class.full_signature: @Override public String getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getType()
focal_method.body: @SneakyThrows(GeneralSecurityException.class)
      @Override
      public String encrypt(final Object plaintext) {
          if (null == plaintext) {
              return null;
          }
          byte[] result = getCipher(Cipher.ENCRYPT_MODE).doFinal(StringUtils.getBytesUtf8(String.valueOf(plaintext)));
          return Base64.encodeBase64String(result);
      }
focal_method.class_method_signature: AESEncryptAlgorithm.encrypt(final Object plaintext)
focal_method.full_signature: @SneakyThrows(GeneralSecurityException.class) @Override public String encrypt(final Object plaintext)
focal_method.identifier: encrypt
focal_method.invocations: doFinal getCipher getBytesUtf8 valueOf encodeBase64String
focal_method.modifiers: @SneakyThrows(GeneralSecurityException.class) @Override public
focal_method.parameters: (final Object plaintext)
focal_method.return: String
focal_method.signature: String encrypt(final Object plaintext)