Very brief background on the question: I'm a CS student and just started a new apprentice software developer position. I'm mostly working with C# which I do not have much experience with (most of what I have written for class/projects was in Java), which my manager is aware of so I don't think it'd be a problem to just ask him or one of the other senior developers. However, I would like to demonstrate that I am able to figure some things out on my own so I figured I'd ask here first.
Essentially what I have been tasked with doing is to modify a class designed to encrypt and decrypt various pieces of information like customer information. My manager has asked that I modify the program to be able to initiate the encryption using one of several salt values, each of which is static and associated with a given category of information. He recommended I use an enumerator to contain the salt values which I could then pull into the encrypt and decrypt methods based on the type of information being encrypted, which is passed to those methods as a string parameter.
I have browsed a number of threads similar to this question which have given me a decent idea of how to go about creating an enumerator-like structure to contain a number of pairs of strings (with the key being the information type and the value being the associated salt). However, I'm not sure how I can then pass those values to the other methods in the class, as I haven't been able to find a way of directly passing them as parameters to the encrypt and decrypt methods. There are a few messy ways I think might work but I imagine there has to be a more refined solution that I'm not aware of due to my relative inexperience with c#.
If I can provide any additional information please let me know. Sorry if the question is hard to understand, I've lurked on Stack Overflow for years but this is my first time posting a question so I may not have expressed my issue clearly. Thank you in advance for any help you can provide.