feat: a1 without d

This commit is contained in:
Leo
2026-05-01 01:31:53 +02:00
parent 4784a15866
commit 9c2b167d3a
11 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Generate rsa private key:
openssl genpkey -algorithm RSA -out c-rsa-priv.key -pkeyopt rsa_keygen_bits:2048
Extract the public key from the private key
openssl pkey -in c-rsa-priv.key -pubout -out c-rsa-pub.key
Encrypt the file using the rsa pubkey
openssl pkeyutl -encrypt -pubin -inkey c-rsa-pub.key -in plaintext.txt -out c-enc-rsa.txt