示例#1
0
 /**
  * Decrypt a String with the AES encryption standard. <br>
  * The private key must have a length of 16 bytes. <br>
  * The provider used is by default this uses the platform default JSSE provider. This can be
  * overridden by defining <code>application.crypto.provider</code> in <code>application.conf
  * </code>. <br>
  * The transformation used is by default <code>AES/CTR/NoPadding</code>. It can be configured by
  * defining <code>application.crypto.aes.transformation</code> in <code>application.conf</code>.
  * Although any cipher transformation algorithm can be selected here, the secret key spec used is
  * always AES, so only AES transformation algorithms will work.
  *
  * @deprecated This method is deprecated and will be removed in future versions.
  * @param value An hexadecimal encrypted string.
  * @param privateKey The key used to encrypt.
  * @return The decrypted String.
  */
 @Deprecated
 public String decryptAES(String value, String privateKey) {
   return crypto.decryptAES(value, privateKey);
 }
示例#2
0
 /**
  * Decrypt a String with the AES encryption standard using the application's secret key. <br>
  * The provider used is by default this uses the platform default JSSE provider. This can be
  * overridden by defining <code>application.crypto.provider</code> in <code>application.conf
  * </code>. <br>
  * The transformation used is by default <code>AES/CTR/NoPadding</code>. It can be configured by
  * defining <code>application.crypto.aes.transformation</code> in <code>application.conf</code>.
  * Although any cipher transformation algorithm can be selected here, the secret key spec used is
  * always AES, so only AES transformation algorithms will work.
  *
  * @deprecated This method is deprecated and will be removed in future versions.
  * @param value An hexadecimal encrypted string.
  * @return The decrypted String.
  */
 @Deprecated
 public String decryptAES(String value) {
   return crypto.decryptAES(value);
 }