src/com/vehiclerental/utils/CryptoUtils.java
/**
     * Encrypts a plain text string with AES256 and encode the result in hexadecimal
     * @param data plain text string
     * @return AES256 encrypted and Hex encoded string
     * @throws Exception if the encryption system fails
     */
Encrypts a plain text string with AES256 and encode the result in hexadecimal
@param data plain text string
@return AES256 encrypted and Hex encoded string
@throws Exception if the encryption system fails
Encrypts a plain text string with AES256 and encode the result in hexadecimal @param data plain text string @return AES256 encrypted and Hex encoded string @throws Exception if the encryption system fails
public static String encrypt(String data) throws Exception {
        Cipher encryptCipher = buildCipher(Cipher.ENCRYPT_MODE);
        return byteArrayToHexString(encryptCipher.doFinal(data.getBytes("UTF-8")));
    }
public static String encrypt ( String data ) throws Exception { Cipher encryptCipher = buildCipher ( Cipher . ENCRYPT_MODE ) ; return byteArrayToHexString ( encryptCipher . doFinal ( data . getBytes ( "UTF-8" ) ) ) ; }
Encrypts a plain text string with AES256 and encode the result in hexadecimal
 @param data plain text string
 @return AES256 encrypted and Hex encoded string
 @throws Exception if the encryption system fails
Encrypts a plain text string with AES256 and encode the result in hexadecimal @param data plain text string @return AES256 encrypted and Hex encoded string @throws Exception if the encryption system fails