iOS common encryption method (aes, md5, base64)