Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

two way encryption in PHP?

can someone tell me if PHP has any two-way encryption functions? I dont wish to use libraries like mcrypt... just functions which are available in PHP. Also, i need it to be at least 128bit, as it will be used to encrypt credit card details.

I dont want to use any external classes developed by other people.

If there are any tutorials on the web which show how to do 128bit encryption with php, i would be grateful for links.
0
Mamady
Asked:
Mamady
1 Solution
 
VGRCommented:
XOR
extended MD
Hashes
double-DES
0
 
KriekCommented:
I found this very handy the other day. Has little to do with your question, but still very useful.

http://www.sitepoint.com/article/728

I've always used crypt() unfortunately it is One-way string encryption
0
 
MamadyAuthor Commented:
thanks... but i have already implemented my own credit card verification system. Also, i always use md5 myself, but im really in need of a 2 way encryption method now. Im using mcrypt right now, but i need to move away from this urgently because i need it to run on a server where mcrypt is not installed. (i dont have access to the server, so i cant recompile php, or ask that php be recompiled to include the mcrypt library)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
KriekCommented:
I think it's pretty safe to say that you aren't going to find any two-way encryption functions in php, "secure" ones anyway.

Encryption and Decryption using PHP and GnuPG:
http://www.zend.com/zend/tut/tutorial-brogdon.php
0
 
waygoodCommented:
I think you should look into SSL. You need to get a licence and install it. Ask your host about adding this in, or alternatively go with a third party company that processes your cedit cards for you, such as Worldpay.
0
 
MamadyAuthor Commented:
ssl encrypts information being sent from the browser to the server... once it reaches the server, the information is no longer encrypted.

I already have an ssl cert. for the domain.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now