Write some PHP code that will implement one of the mcrypt algorithms. Be a lot easier to just use mcrypt of course.
Unless you don't have control over the system on which this will be running and can't install it.
In which case I wouldn't trust you with MY credit card details.