AES encryption

AES encryption in CBC mode with a random IV Swift 3.0

AES encryption in CBC mode with a random IV Swift 2.3

AES encryption in ECB mode with PKCS7 padding