I've looked and could not find a post for this, if there is one, I'll remove it quick! Related and also related
The goal is (hopefully) clear: create the shortest code (in bytes) that implements the AES256 ECB cipher mode. Either convert the result to Base64 or output a array of bytes. The input contains two parts. The first part is the stuff to encrypt, and the second part (separated by newlines) is the secret key. You do not need to decrypt it!
Test cases!
Input:
AES Encryption!
averygoodsecretpasswordthatsgood
Output:
VBWQy7umRdabP1xs2y1Oqg==
You may output as an array of bytes too, if you wish.