Search
 
SCRIPT & CODE EXAMPLE
 

PHP

encrypt/decrypt data php

//Key
$key = 'SuperSecretKey';

//To Encrypt:
$encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'I want to encrypt this', MCRYPT_MODE_ECB);

//To Decrypt:
$decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $encrypted, MCRYPT_MODE_ECB);
Comment

encryption and decryption in php example

$decoded = base64_decode($encoded);
Comment

Symmetric decryption in PHP

<?php
$encrypted_text = "qnHWqq1mElDqW2RCepH14VriPf5s2Q==";
$cipher = "AES-128-CTR";
$key = "Blog Desire";
$iv = "1232434565432123";
$original_text = openssl_decrypt ($encrypted_text, $cipher, $key, $options = 0, $iv);
echo $original_text;
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress login user programmatically 
Php :: laravel validation custom message example 
Php :: laravel resource 
Php :: carbon this month first day 
Php :: Laravel check for constraint violation 
Php :: laravel pagination 
Php :: spatie activity log 
Php :: php concatenation with a space 
Php :: PDO Prepared Statement php 
Php :: laravel route pattern 
Php :: how to check if query is successfully inserted laravel 
Php :: How to install or setup sanctum for laravel api authentication 
Php :: laravel load relationship 
Php :: Simple 301 redirect 
Php :: this php 
Php :: twig in array 
Php :: is legged in wodpress 
Php :: laravel migration mediumtext length 
Php :: Eager realationship in laravel 
Php :: to enable php in apache 
Php :: check if data inserted in database wordpress plugin 
Php :: wp wc php edit archive-product category page 
Php :: How to create routes in the codeigniter 
Php :: intellisense in visual studio code for php-oop 
Php :: laravel get data from model to controller 
Php :: media library laravel maximum allowed size 
Php :: eloquent multiple orwhere 
Php :: sql query show table phpmyadmin 
Php :: laravel filter 
Php :: laravel collection forPage 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =