Simple ciphering function derived from Google's crypto.js AES encryption function.