I have a battle-tested black box crypto library which was developed by industry recognized experts. This box keeps your private key in a hardware backed, tamper proof storage. It only does one thing. Takes an 8 digit all ascii chars as input, encrypts it using RSA and returns the ciphertex. Extreme measures are taken to prevent known side channel attacks and the encrypted information has no monetary value. No-one has any motivation to attack this system. And I am just a developer. Dont know anything about asymmetric cryptography. And for some reason I want to encrypt my name using this magic box, repeatedly. Over and over again.
If this was AES, I would use an IV. Not that I know what an IV is but people on the internet says it is good to add some randomness.
Now, I just wonder, theoretically, does adding a timestamp to my name before encryption improves the security of my cipher?
Original question:
I am supposed to encrypt a user's ID with user's public key. For encryption, I have a blackbox crypto library. The library is assumed to be safe and secure, I have no control on it. I just select RSA or EC, give it the plaintext ID and it gives me the cipher-text. I will be encrypting a user ID each time a user logs in and the ID never changes. Would it make my implementation any safer if I append some random data or a time stamp to the ID before each encryption?
encrypt with private key
Private keys don't encrypt things!!