Diff -- /var/www/vhosts/3dshawn.com/site1/test_crypto.pl

O Operator
Diff

/var/www/vhosts/3dshawn.com/site1/test_crypto.pl

deleted on local at 2026-07-11 23:20:01

Added
+0
lines
Removed
-8
lines
Context
0
unchanged
Blobs
from 8205133404b9
to
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1use strict; use warnings;
2use lib '/var/www/vhosts/3dshawn.com/site1';
3use MODS::Crypto;
4my $secret = "SECRET-PAYLOAD-1234\n" . ("A" x 500);
5my $enc = MODS::Crypto::encrypt($secret);
6print "enc_ok=", ($enc ? "1 (len=" . length($enc) . ")" : "0"), "\n";
7my $dec = MODS::Crypto::decrypt($enc);
8print "dec_ok=", ($dec eq $secret ? "1 (roundtrip matches)" : "0 (mismatch)"), "\n";