News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Hasin Hayder's Blog:
RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library
September 12, 2011 @ 11:17:08

Hasin Hayder has recently posted a tutorial to his blog showing how to use the Zend_Crypt_Rsa library for encrypting/decrytping data in a Zend Framework application.

Public/private key based encryption is very popular because of the strength it sets in encryption, specially above 1024 bits. Now there are external library to encrypt data using RSA encryption like RSA in phpclasses.org - the fun is we were also using this library in one of our ZF based project. But last week I've found that there is a hidden gem in the Library/Zend/Crypt folder (Zend_Crypt_Rsa) which can do the same thing using openssl library.

He couldn't find much in the way of documentation for the component, so he wrote up how to use it in three easy steps:

  • Create your RSA public/private key using ssh-keygen
  • Encrypt data using your public key
  • Decrypt the cipher

The Zend_Crypt_Rsa makes it simple to encrypt/decrypt the data, just taking in a passphrase, a path to the RSA key file and the message contents.

0 comments voice your opinion now!
zendcryptrsa encrypt decrypt zendframework tutorial


blog comments powered by Disqus

Similar Posts

Community News: PHPBenelux BugHuntDay 2010 (Zend Framework & Joind.in)

Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 7: Authorisation with Zend_Acl & Styling

Zend Developer Zone: Wrapping C++ Classes in a PHP Extension

DevShed: Introduction to the CodeIgniter PHP Framework

Ibuildings techPortal: DPCRadio: Working with Zend_Form


Community Events





Don't see your event here?
Let us know!


podcast library unittest developer application wordpress interview language list configure api series install code bugfix threedevsandamaybe introduction community release laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework