Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import gnupg
gpg = gnupg.GPG(verbose=True)
plain_data = "Some plain text data"
good_passphrase = "Good Passphrase"
# Test Encrypt
result = gpg.encrypt(plain_data, None, passphrase=good_passphrase, symmetric=True)
assert(result.returncode == 0)
enc_data = str(result)
assert(enc_data != plain_data)
# Test Good Decrypt
result = gpg.decrypt(enc_data, passphrase=good_passphrase)
assert(result.returncode == 0)
dec_data = str(result)
assert(dec_data == plain_data)
# Test Bad Decrypt
result = gpg.decrypt(enc_data, passphrase='A Wrong Passphrase')
assert(result.returncode != 0)
dec_data = str(result)
assert(dec_data != plain_data)