All Links
  • Home
  • Categories
    • Activism - Animal Rights - Human Rights - Liberties - Peace - Petitions - Poverty
    • Airplanes - Automotive - Bicycles - Boats - Cars - Drones - Motorcycles - Transportation
    • Animals - Pets - Zoos - Wildlife
    • Announcements - Events - Media - News - Transmedia
    • APPs - Coding - Gaming - Hardware - Security - Software
    • Arts - Ballet - Crafts - Dance - Movies - Photography - Shows - Theatre - Trailers
    • Bars - Cafes - Clubs - Drinks - Food - Recipes - Restaurants
    • Beauty - Cosmetic - Fashion - Modeling - Style
    • Books - Facts - knowledge - Libraries - Reference
    • Business - Economy - Finance - Markets - Retail - Shopping
    • Celebrity - Culture - Lifestyle - People - Society
    • Clean Funny - Humor - LOL - Riddles
    • Comedy - Concerts - Entertainment - Games - Music
    • Decor - Design - Gardening - Home - Parenting
    • DIY - Help - How To - Ideas - Inventions - Tips
    • Fitness - Games - Health - Recreation - Sports
    • Geeky - Technology - Science - Space
    • Government - Police - Politics - Public Services
    • Places - Sightseeing - Tours - Travel
    • Real Estate Agents - Management - Rental - Sales - Services
    • Social Gatherings - Social Groups - Social Media - Social Web
    • Web - World
    • WTF - Other
  • Explore
    • Trending Now
    • Featured
    • Popular
  • Create
  • About
    • Contact Us
    • DMCA Policy
    • Privacy Policy
    • Terms of Use
  • Login
  • Register

Openssl Encrypt and Decrypt In PHP From Amit G

March 2, 2015

APPs - Coding - Gaming - Hardware - Security - Software

/*$string = 'This is test';
$pass = '1234';
$method = 'aes128';
file_put_contents ('./file.txt', openssl_encrypt ($string, $method, $pass));*/

$method = 'aes-128-ecb';
$iv = openssl_random_pseudo_bytes(
openssl_cipher_iv_length($method));
$msg="this is the testing for encoding and decoding";

$en=openssl_encrypt($msg, $method, 'def', true, $iv);
echo $en;

$de=openssl_decrypt($en, $method, 'def', true, $iv);
echo $de;

Next     Prev
Openssl Encrypt and Decrypt In PHP From Amit G

Posted By

Mass
Mass

Comments

You May Also Like

RipTide - In The Middle of the Nite

RipTide - In The Middle of the Nite

Top Soccer Shootout Ever With Scott Sterling

Top Soccer Shootout Ever With Scott Ster...

How Fiber Optics Are Made

How Fiber Optics Are Made

The Stuxnet Virus On Cybercrimes

The Stuxnet Virus On Cybercrimes

Building Boeing 747-8 Full Video Documentary

Building Boeing 747-8 Full Video Documen...

Race In America! - President Obama & O'Reilly - The Race Problem!

Race In America! - President Obama & O'R...

Russian Epic Road Rage Fails Compilation

Russian Epic Road Rage Fails Compilation

Father and son drift 3

Father and son drift 3

© 2025 All Links
POWERED BY COMPUON
Home | Privacy Policy | Terms of Use | DMCA | RSS Feeds | Contact Us