I need to create a NuGet package, that provides encryption and decryption for plain text. So I created a sample class which has 2 methods for encryption and decryption and hardcoded the input string and generated key and IV using Random number generator.
My question is, If I create the package, with this class file, How can the client application know the key?
The client application will send the input string, and my NuGet package should encrypt that send the base64 encoded string to the client application, and the client app has to have the same key to decrypt that text. I am a little bit confused on how the key should be shared.
Please help.