V
VR
In my web.config I am storing a connection string to SQL
server, along with password and user name. My goal is to
somehow encrypt the string so it wouldn't be in clear text.
From my understanding I cannot use the one-way algorithms,
like MD5 or SHA1, since I'll have to decrypt the
connection string I read from the file.
Therefore, I tried using DES (symmetrical algorithm). The
problem I might be having is that the encrypted version of
the string consists of bytes with values from 0..255, so
it doesn't map very well into ASCII, and therefore, I
can't reliably store it in web.config file.
Are there symmetrical algorithms that produce ASCII hash?
Or am I doing the whole thing wrong?
Thanks in advance for any help.
VR
server, along with password and user name. My goal is to
somehow encrypt the string so it wouldn't be in clear text.
From my understanding I cannot use the one-way algorithms,
like MD5 or SHA1, since I'll have to decrypt the
connection string I read from the file.
Therefore, I tried using DES (symmetrical algorithm). The
problem I might be having is that the encrypted version of
the string consists of bytes with values from 0..255, so
it doesn't map very well into ASCII, and therefore, I
can't reliably store it in web.config file.
Are there symmetrical algorithms that produce ASCII hash?
Or am I doing the whole thing wrong?
Thanks in advance for any help.
VR