A lot of HSMs also offer symmetric encryption and decryption.
E.g. AES. AES does not use salt, but it does need some random: the initialisation vector.
An IV has a different purpose: with a different IV, even identical input and an identical key will
give you different output every time.
Otherwise the enemy will probably recognize your "Attack at dawn!" message from last time you thought starting a war was a solution to your problems.
Later on you will learn to use an HSM for symmetric encryption and decryption,
but at this stage let's not bite of more than we can chew:
- Visit with this link: CyberChef
Now change the IV, but not the key and input. E.g. change the first zero to a 1.
This is an area where IV and salt differ!
As proof change my 1234 salt to 1235 here
By the way, an example of AES encryption is this
(To confuse the enemy, change the IV for every instance of this message you send, and don't forget to include the IV !)
Have a look at the left, see what CyberChef can do for you.
Now try something new like Base64 and unBase64. (Hint: drag & drop)