mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
tests: cleanup and module deps fix
This commit is contained in:
parent
e971a6e095
commit
6ca37c5a94
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA1 qw (sha1);
|
use Digest::SHA1 qw (sha1);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA1 qw (sha1);
|
use Digest::SHA1 qw (sha1);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD4 qw (md4_hex);
|
use Digest::MD4 qw (md4_hex);
|
||||||
use Encode;
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [-1, -1], [0, 27], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [-1, -1], [0, 27], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha512_hex);
|
use Digest::SHA qw (sha512_hex);
|
||||||
use MIME::Base64 qw (encode_base64);
|
use MIME::Base64 qw (encode_base64 decode_base64);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] }
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD4 qw (md4 md4_hex);
|
use Digest::MD4 qw (md4);
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
use POSIX qw (strftime ceil);
|
use POSIX qw (ceil);
|
||||||
|
|
||||||
sub module_constraints { [[-1, -1], [-1, -1], [1, 55], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[-1, -1], [-1, -1], [1, 55], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,10 +9,8 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Authen::Passphrase::NTHash;
|
use Authen::Passphrase::NTHash;
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
use Encode qw (encode);
|
use Crypt::ECB;
|
||||||
use Crypt::ECB qw (encrypt);
|
|
||||||
|
|
||||||
sub setup_des_key
|
sub setup_des_key
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,6 @@ use Encode;
|
|||||||
use Crypt::RC4;
|
use Crypt::RC4;
|
||||||
use Digest::HMAC_MD5 qw (hmac_md5);
|
use Digest::HMAC_MD5 qw (hmac_md5);
|
||||||
use Digest::MD4 qw (md4);
|
use Digest::MD4 qw (md4);
|
||||||
use Digest::MD5 qw (md5_hex);
|
|
||||||
use POSIX qw (strftime);
|
use POSIX qw (strftime);
|
||||||
|
|
||||||
sub get_random_kerberos5_salt
|
sub get_random_kerberos5_salt
|
||||||
|
@ -7,8 +7,9 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64;
|
use MIME::Base64 qw (encode_base64 decode_base64);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5_hex);
|
|
||||||
use Digest::SHA qw (sha1);
|
use Digest::SHA qw (sha1);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [40, 40], [0, 55], [40, 40], [-1, -1]] }
|
sub module_constraints { [[0, 256], [40, 40], [0, 55], [40, 40], [-1, -1]] }
|
||||||
|
@ -12,8 +12,6 @@ use Encode;
|
|||||||
use Crypt::RC4;
|
use Crypt::RC4;
|
||||||
use Digest::HMAC_MD5 qw (hmac_md5);
|
use Digest::HMAC_MD5 qw (hmac_md5);
|
||||||
use Digest::MD4 qw (md4);
|
use Digest::MD4 qw (md4);
|
||||||
use Digest::MD5 qw (md5_hex);
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [16, 16], [0, 27], [16, 16], [-1, -1]] }
|
sub module_constraints { [[0, 256], [16, 16], [0, 27], [16, 16], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha1_hex);
|
use Digest::SHA qw (sha1_hex);
|
||||||
use Encode;
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [9, 9], [0, 46], [9, 9], [-1, -1]] }
|
sub module_constraints { [[0, 256], [9, 9], [0, 46], [9, 9], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::ECB qw (encrypt);
|
|
||||||
use Digest::MD4 qw (md4);
|
use Digest::MD4 qw (md4);
|
||||||
use Digest::SHA qw (sha1 hmac_sha1);
|
use Digest::SHA qw (sha1 hmac_sha1);
|
||||||
|
use Crypt::ECB;
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::CBC;
|
|
||||||
use Crypt::ECB qw (encrypt);
|
|
||||||
use Digest::MD4 qw (md4);
|
use Digest::MD4 qw (md4);
|
||||||
use Digest::SHA qw (sha1 hmac_sha1 hmac_sha512);
|
use Digest::SHA qw (sha1 hmac_sha1 hmac_sha512);
|
||||||
|
use Crypt::CBC;
|
||||||
|
use Crypt::ECB;
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -12,8 +12,6 @@ use Encode;
|
|||||||
use Crypt::RC4;
|
use Crypt::RC4;
|
||||||
use Digest::HMAC_MD5 qw (hmac_md5);
|
use Digest::HMAC_MD5 qw (hmac_md5);
|
||||||
use Digest::MD4 qw (md4);
|
use Digest::MD4 qw (md4);
|
||||||
use Digest::MD5 qw (md5_hex);
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [16, 16], [0, 27], [16, 16], [-1, -1]] }
|
sub module_constraints { [[0, 256], [16, 16], [0, 27], [16, 16], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -11,8 +11,6 @@ use warnings;
|
|||||||
use Digest::SHA qw (hmac_sha1);
|
use Digest::SHA qw (hmac_sha1);
|
||||||
use Crypt::Mode::CBC;
|
use Crypt::Mode::CBC;
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub byte2hex
|
sub byte2hex
|
||||||
{
|
{
|
||||||
|
@ -11,8 +11,6 @@ use warnings;
|
|||||||
use Digest::SHA qw (hmac_sha1);
|
use Digest::SHA qw (hmac_sha1);
|
||||||
use Crypt::Mode::CBC;
|
use Crypt::Mode::CBC;
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub byte2hex
|
sub byte2hex
|
||||||
{
|
{
|
||||||
|
@ -11,8 +11,6 @@ use warnings;
|
|||||||
use Digest::SHA qw (hmac_sha1);
|
use Digest::SHA qw (hmac_sha1);
|
||||||
use Crypt::Mode::CBC;
|
use Crypt::Mode::CBC;
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub byte2hex
|
sub byte2hex
|
||||||
{
|
{
|
||||||
|
@ -11,8 +11,6 @@ use warnings;
|
|||||||
use Digest::SHA qw (hmac_sha1);
|
use Digest::SHA qw (hmac_sha1);
|
||||||
use Crypt::Mode::CBC;
|
use Crypt::Mode::CBC;
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
|
||||||
use POSIX qw (strftime);
|
|
||||||
|
|
||||||
sub byte2hex
|
sub byte2hex
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [128, 128], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha256);
|
use Digest::SHA qw (sha256);
|
||||||
use MIME::Base64;
|
use MIME::Base64 qw (encode_base64);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Crypt::PBKDF2;
|
|
||||||
use Digest::SHA qw (sha512);
|
use Digest::SHA qw (sha512);
|
||||||
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [0, 256], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Crypt::PBKDF2;
|
|
||||||
use Digest::SHA qw (sha512);
|
use Digest::SHA qw (sha512);
|
||||||
|
use Crypt::PBKDF2;
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [16, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [16, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
@ -8,13 +8,10 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [1, 15], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [1, 15], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
#pbkdf2(1000,20,sha512)$a2a2ca127df6bc19$77bb5a3d129e2ce710daaefeefef8356c4c827ff";
|
|
||||||
|
|
||||||
sub module_generate_hash
|
sub module_generate_hash
|
||||||
{
|
{
|
||||||
my $word = shift;
|
my $word = shift;
|
||||||
@ -37,8 +34,6 @@ sub module_generate_hash
|
|||||||
return $hash;
|
return $hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pbkdf2(1000,20,sha512)$a2a2ca127df6bc19$77bb5a3d129e2ce710daaefeefef8356c4c827ff";
|
|
||||||
|
|
||||||
sub module_verify_hash
|
sub module_verify_hash
|
||||||
{
|
{
|
||||||
my $line = shift;
|
my $line = shift;
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5_hex);
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [-1, -1], [0, 55], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [-1, -1], [0, 55], [-1, -1], [-1, -1]] }
|
||||||
|
@ -9,9 +9,9 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA1 qw (sha1);
|
use Digest::SHA1 qw (sha1);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac);
|
||||||
use Encode qw (encode decode);
|
use Encode qw (encode);
|
||||||
use MIME::Base64;
|
use MIME::Base64 qw (encode_base64);
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [0, 256], [0, 27], [0, 27], [0, 27]] }
|
sub module_constraints { [[0, 256], [0, 256], [0, 27], [0, 27], [0, 27]] }
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
|
||||||
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ use warnings;
|
|||||||
|
|
||||||
use Digest::MD5 qw (md5 md5_hex);
|
use Digest::MD5 qw (md5 md5_hex);
|
||||||
use Digest::SHA qw (sha1 sha1_hex);
|
use Digest::SHA qw (sha1 sha1_hex);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::MD5 qw (md5 md5_hex);
|
use Digest::MD5 qw (md5 md5_hex);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha1 sha1_hex);
|
use Digest::SHA qw (sha1 sha1_hex);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [24, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Digest::SHA qw (sha512);
|
use Digest::SHA qw (sha512);
|
||||||
use Encode;
|
use Encode;
|
||||||
|
|
||||||
|
@ -290,7 +290,8 @@ sub module_verify_hash
|
|||||||
my $o = shift @data;
|
my $o = shift @data;
|
||||||
|
|
||||||
my $u_pass = "";
|
my $u_pass = "";
|
||||||
if($i_data == 12) {
|
if ($i_data == 12)
|
||||||
|
{
|
||||||
$u_pass = shift @data;
|
$u_pass = shift @data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,4 +145,3 @@ sub module_verify_hash
|
|||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha224 sha224_hex);
|
use Digest::SHA qw (sha224 sha224_hex);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [32, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [32, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha256 sha256_hex);
|
use Digest::SHA qw (sha256 sha256_hex);
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
use Digest::HMAC qw (hmac_hex);
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [48, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [48, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA qw (sha384 sha384_hex hmac_sha384_hex);
|
use Digest::SHA qw (sha384 sha384_hex hmac_sha384_hex);
|
||||||
#use Digest::HMAC qw (hmac hmac_hex);
|
|
||||||
|
|
||||||
sub module_constraints { [[8, 256], [64, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[8, 256], [64, 3000], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,10 +8,8 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::HMAC qw (hmac hmac_hex);
|
|
||||||
use Digest::MD5 qw (md5);
|
use Digest::MD5 qw (md5);
|
||||||
use Encode qw (encode);
|
use Crypt::ECB;
|
||||||
use Crypt::ECB qw (encrypt);
|
|
||||||
|
|
||||||
sub setup_des_key
|
sub setup_des_key
|
||||||
{
|
{
|
||||||
|
@ -87,4 +87,3 @@ sub random_client_challenge
|
|||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
@ -9,8 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Encode;
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -9,8 +9,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Crypt::PBKDF2;
|
use Crypt::PBKDF2;
|
||||||
use MIME::Base64 qw (encode_base64 decode_base64);
|
use MIME::Base64 qw (encode_base64);
|
||||||
use Encode;
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [64, 64], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
@ -8,9 +8,8 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Digest::SHA1 qw (sha1 sha1_hex);
|
use Digest::SHA1 qw (sha1);
|
||||||
use Encode qw (encode decode);
|
use MIME::Base64 qw (encode_base64 decode_base64);
|
||||||
use MIME::Base64;
|
|
||||||
|
|
||||||
sub module_constraints { [[0, 256], [224, 224], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [224, 224], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user