Jun
21
2010

สร้าง htpasswd ด้วย php,perl,ruby

722 views

The crypt() method uses 56-bit DES encryption, which is used in /etc/passwd and htpasswd.

PHP
   echo crypt("password", "salt");

Perl
   perl -le 'print crypt("password", "salt")'

Ruby (run in irb)
   "password".crypt("salt")

Written by Pipo in: FreeBSD & Linux |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Page 1 of 11

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes