Using Mathematica v12.2, is it possible to call gpg (or gpg4win) and then tell it to generate an RSA key pair and to return
- private and public PGP key blocks in standand format
- and the 40 hex-character PGP fingerprint,
with all three then processable as Mathematica variables?
(So for example if the fingerprint did not have characters 9-12 spelling "ABC1" you could loop back and keep generating asymmetric key pairs until you found one that did have a fingerprint that met the criterion, and when you did you would have both its public key block and its private key block, as well as the "nice" fingerprint itself.)
RunProcess
to just run gpg from within Mathematica. $\endgroup$GenerateAsymmetricKeyPair
then the whole problem would be solved. But that seems to be a tough ask, so I'm kinda thinking running gpg from within Mathematica is the way to go, although am unsure how to implement. $\endgroup$