<?php $plaintext = "Your sensitive message"; $cipher = "AES-128-CTR"; $key = "Blog Desire"; $iv = "1232434565432123"; $ciphertext = openssl_encrypt($plaintext, $cipher, $key, $options=0, $iv); echo $ciphertext;