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

Dogs are faster than humans

Dogs are faster than humans

A Japanese Guy Jumps Into A Bathtub Full Of Coke With Mentos Taped Around His Body

A Japanese Guy Jumps Into A Bathtub Full...

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...

All About Links & Linking in Dreamweaver CS6 By Nathaniel Dodson at TutVid

All About Links & Linking in Dreamweaver...

9 Exercises For A Flat Stomach

9 Exercises For A Flat Stomach

The Best Of Morrissey

The Best Of Morrissey

Father and son drift 3

Father and son drift 3

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