<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>PHP on Junihh Blog</title><link>/categories/php/</link><description>Recent content in PHP on Junihh Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>©2020 Junihh Blog.</copyright><lastBuildDate>Mon, 18 May 2020 16:00:00 +0000</lastBuildDate><atom:link href="/categories/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Encrypt and decrypt text strings with PHP</title><link>/post/encrypt-and-decrypt-text-strings-with-php/</link><pubDate>Mon, 18 May 2020 16:00:00 +0000</pubDate><guid>/post/encrypt-and-decrypt-text-strings-with-php/</guid><description>PHP is one of the most popular programming languages ​​thanks to Facebook and Wordpress, but popularity does not indicate that it is the best or the safest to program. However, many low-cost projects are developed in this language.
I leave you an alternative to encrypt text strings. For this occasion we will use OpenSSL .
function openCypher ($action='encrypt',$string=false) { $action = trim($action); $output = false; $myKey = 'oW%c76+jb2'; $myIV = 'A)2!</description></item></channel></rss>