"Bruce" <fake_dont_send@anything_.comwrote in message
news:e6**************@TK2MSFTNGP05.phx.gbl...
>
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:OB**************@TK2MSFTNGP04.phx.gbl...
"Bruce" <fake_dont_send@anything_.comwrote in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
How can I encrypt strings using an asymmetric key?
Public/Private key based systems are asymmetric. Below you talk about
using
a password, that would be symmetric since the data is decrypted using
the
same key that encrypted it.
By "password" I meant the (asymmetric) secret key that will decrypt the
strings.
The reason I'm looking for asymmetric, is because I don't want to store
the
key on the same server that keeps the data.
I also don't want to use the SQL server to decrypt, since it's hosted on a
shared hosting, and I don't want to bund myself to specific features that
that hosting company is providing. So I'm looking for some pure lovely ASP
code.
So if the host doesn't have the 'secret key' (you mean private key right?)
Where is the key held and how does it get to where its needed?
I've not seen a public/private algorithm implemented in VBScript before.
I'm still not sure I understand why this system needs to asymmetric, can't
you just do the encryption in the same place using the same key as the
decryption?
--
Anthony Jones - MVP ASP/ASP.NET