RSA Key Pair Generation
- Generate RSA key pairs with customizable modulus length (default is 1024 bits).
- Convert public key components (e and n) and private key component (d) from base64 to hex.
- Write key data to a file in the 'output' folder.
- Automatically create an 'output' folder if it doesn't exist.