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

We Lost Leonard Nimoy (Mr. Spock) :-(

We Lost Leonard Nimoy (Mr. Spock) :-(

Top Soccer Shootout Ever With Scott Sterling

Top Soccer Shootout Ever With Scott Ster...

Introducing Spot  - A Robot Dog

Introducing Spot - A Robot Dog

Nickelback - She Keeps Me Up (love it or hate it)

Nickelback - She Keeps Me Up (love it or...

Alexa Goddard - So There Video Music

Alexa Goddard - So There Video Music

The Unknowns - Special Extended Preview

The Unknowns - Special Extended Preview

AWWA·QG

AWWA·QG "Progress Eagle" - Quantum Ai...

Black conservative leaders discuss how the NRA was created to protect freed slaves

Black conservative leaders discuss how t...

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