How to AES Encrypt in Groovy - Code Snippet

How to perform 'AES Encrypt' in Groovy.

example.groovy
// Task: AES Encrypt
// Language: Groovy

def aes_encrypt() {
    // Implementation for AES Encrypt
    def result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process AES Encrypt
    println("Done");
}
AdSense Slot