What would be the best way to store an encrypted (Synchronous) password outside of the application?
I have an encrypted password (Courtesy of wumpus1 at
in ASP.net, I'd just tuck
in the web.config file and extract in whenever I need in the code. I can't figure out quite how to do this the right way in win32 exectuables (VB.NET). I notice that my project includes a file called app.config, but I don't see an area for custom data here. Additionally, from what I've read, this file has the wrong name for it to function once compiled (my project name is DOJTRS. Shouldn't the app.config file be named DOJTRS.exe.config? If so, how is the thing compiling at all?
I have an encrypted password (Courtesy of wumpus1 at
Code:
Dim sym As New Encryption.Symmetric(Encryption.Symmetric.Provider.Rijndael)
Dim key As New Encryption.Data("My Password")
Dim encryptedData As Encryption.Data
encryptedData = sym.Encrypt(New Encryption.Data("Secret Sauce"), key)
Dim base64EncryptedString As String = encryptedData.ToBase64
in ASP.net, I'd just tuck
Code:
base64EncryptedString