<?php

declare(strict_types=1);

echo "SODIUM_CRYPTO_SECRETBOX_NONCEBYTES = " . SODIUM_CRYPTO_SECRETBOX_NONCEBYTES . "\n";
echo "Expected nonce length: 24\n";

// Test actual nonce generation
$key = random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES);
$nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);

echo "Generated nonce length: " . strlen($nonce) . " bytes\n";
