# Perl vs PHP Encryption

**URL:** https://forum.kirupa.com/t/perl-vs-php-encryption/652891
**Category:** web dev
**Created:** [July 31, 2022, 6:47am UTC](https://forum.kirupa.com/t/perl-vs-php-encryption/652891 "2022-07-31T06:47:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![typomaniac](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/typomaniac/32/17717_2.png) [@typomaniac](https://forum.kirupa.com/u/typomaniac)
#### Post date: [July 31, 2022, 6:47am UTC](https://forum.kirupa.com/t/perl-vs-php-encryption/652891/1 "2022-07-31T06:47:49Z")

</div>

To begin with, I’m an amateur at “scripting” and far from the best but I’m finding Perl a bit easier for what I’m about to do as to PHP.  
I have an admin section on our website that I’m planning on re-writing in Perl–is in PHP currently and the main question I have is about password encryption. Currently it uses PASSWORD\_BCRYPT and the option I’ve found for Perl is the Crypt function. Or, is there another option for encryption I might need to give thought to? The passwords are stored in a MySql db. Changing from one encryption to the other will be no problem.  
Thank you,  
Dave

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [July 31, 2022, 4:55pm UTC](https://forum.kirupa.com/t/perl-vs-php-encryption/652891/2 "2022-07-31T16:55:05Z")

</div>

Hi @typomaniac - I am not an expert on Perl or PHP, so take everything I say with a dose of skepticism 😛

This article, at a glance, seems to summarize all the options available: [10 things: The most useful Perl modules for cryptography and authentication | TechRepublic](https://www.techrepublic.com/article/10-things-the-most-useful-perl-modules-for-cryptography-and-authentication/)

Do any of these ring a bell in your experience for being more secure?
