On Tue, Aug 07, 2018 at 05:40:21pm -0500, Edgar Pettijohn III wrote:
> I am attempting to create and verify password hashes from within perl. The
> easiest way I saw was to use Inline::C like this:
> 
> __C__
> 
> int checkpass(const char *p, const char *h) {
>     printf("%s: %s\n", p, h);
>     return (crypt_checkpass(p, h));
> }

Why not

  perl -e 'print( crypt( $p, $h ), "\n" );'


-- 
Best regards,
Ed http://www.s5h.net/

Reply via email to