I\'m trying to understand how encryption/decryption works, so i\'ve this encrypt JAVA function to convert in PHP (decryption method too):
// JAVA public byte[