Base64 encoding.
Almost complete AES-CTR example.
HMAC example.