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

A truck crashes in Michigan while she is driving

A truck crashes in Michigan while she is...

GTA 5 - Smack Cam

GTA 5 - Smack Cam

Mahatma Gandhi: 5 hours video of life of Gandhi, 1869-1948

Mahatma Gandhi: 5 hours video of life of...

How To Build A Better Brick Rocket Stove For $10

How To Build A Better Brick Rocket Stove...

Alligator Recipe By The BBQ Pit Boys

Alligator Recipe By The BBQ Pit Boys

Ellie Goulding Sings The Hozier’s Take Me To Church

Ellie Goulding Sings The Hozier’s...

Demi Lovato & Iggy Azalea - Certified SuperFanFest (Full Version)

Demi Lovato & Iggy Azalea - Certified Su...

The Stuxnet Virus On Cybercrimes

The Stuxnet Virus On Cybercrimes

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