Initial commit

This commit is contained in:
2025-08-10 08:09:46 -04:00
commit 9edfa5f379
8 changed files with 2050 additions and 0 deletions

27
test.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
echo "Testing OTP Cipher Implementation"
echo "================================="
# Test 1: Generate a pad
echo "Test 1: Generating pad..."
./otp generate test 2
echo
# Test 2: Check if files were created
echo "Test 2: Checking generated files..."
ls -la test.pad test.state
echo
# Test 3: Test encryption
echo "Test 3: Testing encryption..."
echo "Secret Message" | ./otp encrypt test > encrypted_output.txt
cat encrypted_output.txt
echo
# Test 4: Test decryption
echo "Test 4: Testing decryption..."
cat encrypted_output.txt | ./otp decrypt test
echo
echo "Tests completed!"