You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/sandbox/test-bcrypt-cost.pl

18 lines
344 B

#!/usr/bin/perl
use strict;
use warnings;
use v5.14;
use lib '../lib';
use lib '../../sipwise-base/lib';
use NGCP::Panel::Utils::Auth;
use Time::HiRes qw/gettimeofday tv_interval/;
my $t0 = [gettimeofday()];
NGCP::Panel::Utils::Auth::generate_salted_hash("testpass");
my $t1 = [gettimeofday()];
my $diff = tv_interval($t0, $t1);
say $diff;