I have a question regarding encryption: mostly in my web application I used Enterprise Library 5.0, where they had a block for cryptography, so basically in the configuration tool they provided, I registered the block and generated the key.This basically adds a few lines to web configuration, so later in the web application I can do the following:
Cryptographer.EncryptSymmetric("RijndaelManaged", text); Cryptographer.DecryptSymmetric("RijndaelManaged", text);
This will automatically encrypt and decrypt correctly, without any problems.
Now I have the following problem: we are moving from Enterprise Library 5.0 to Enterprise Library 6.0, and in the new version they removed the cryptography block, and instead they advise using .Net cryptography.
So instead, I decided to use the Rijndael.Net class to replace these lines with custom code. I used this topic as a link ( Encrypt and decrypt a string ), but with RijndaelManaged to create it, but I'm a little confused about the key ... because some data is already encrypted, how to get and use the same key to be able to decrypt data and use it ...?
I opened version 5.0 configuration manager to see the key, but can I use it or not?
Can anyone tell me about this?
source share