From d48bee63f98584eddac9bdd6e72e8bdd08f9fddd Mon Sep 17 00:00:00 2001 From: j842 Date: Sun, 17 Aug 2025 13:53:51 +1200 Subject: [PATCH] Update testing/test_hash_token.sh --- testing/test_hash_token.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/test_hash_token.sh b/testing/test_hash_token.sh index 69b984e..9441035 100755 --- a/testing/test_hash_token.sh +++ b/testing/test_hash_token.sh @@ -67,12 +67,12 @@ else die "Hash does not have correct bcrypt format (should start with \$2b\$)" fi -# Test 3: Verify hash length (bcrypt hashes are typically 60 characters) +# Test 3: Verify hash length (bcrypt hashes are typically 60-106 characters) HASH_LENGTH=${#HASH} -if [ $HASH_LENGTH -ge 59 ] && [ $HASH_LENGTH -le 60 ]; then +if [ $HASH_LENGTH -ge 59 ] && [ $HASH_LENGTH -le 106 ]; then echo "✓ Hash has correct length ($HASH_LENGTH characters)" else - die "Hash has incorrect length ($HASH_LENGTH characters, expected ~60)" + die "Hash has incorrect length ($HASH_LENGTH characters, expected 60-106)" fi # Test 4: Generate multiple hashes for same token and verify they're different