We have legacy ASP.NET application which uses Enterprise Library 4.1 Symmetric Key provider where key is stored on physical file as shown on config below. It uses machine key protection.
<symmetricCryptoProviders>
<add algorithmType="System.Security.Cryptography.RijndaelManaged, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
protectedKeyFilename="F:\wwwroot2\MSEntLib3.1\key\EncryptionKey.key"
protectedKeyProtectionScope="Machine" type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
name="RijndaelManaged" />
</symmetricCryptoProviders>
I deployed to Azure and application throws the error "EncryptionKey.key" is not found. Could someone please help how we keep using the Enterprise Library Crypto in azure?
Are there any option where we can create a key and use on any web servers including Azure Web Roles?
Thanks