Re: perlish question

2018-08-16 Thread edgar
On Aug 16, 2018 1:41 AM, Ed wrote: > > 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, co

Re: perlish question

2018-08-16 Thread Ed
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); >     r

perlish question

2018-08-07 Thread Edgar Pettijohn III
I am attempting to create and verify password hashes from within perl. The easiest way I saw was to use Inline::C like this: #!/usr/bin/env perl use Inline C; my $pass = 'password'; my $hash = qx(encrypt password); chomp $hash; #get rid of pesky newline $hash =~ s/(\$)/\\$1/gx; #replace $ wit