I found this code in a PERL script that was written by someone else:
$password =~ tr/a-zA-Z/n-za-mN-ZA-M/;
For example, "newuser1" translates to "arjhfre1" and vice versa. I
realize this isn't the best password encryption, but then I didn't
write the originating software either.
I am trying to convert this to it's PHP equivalent. I understand why
this works in PERL, but I can't figure out the syntax for the
preg_replace command to get it working in PHP. Can someone please
take a crack at it?
Thanks,
Brian