Re: Windows Regitry - Encryption Key storage
From: Harman Sahni (HarmanSahni_at_Hotmail.com)
Date: 06/30/04
- Next message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Installing Visual Studio 6 AFTER Visual Studio 2003 trial and Office 2003 - Is it safe?"
- Previous message: Harman Sahni: "Re: Windows Regitry - Encryption Key storage"
- In reply to: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Next in thread: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Reply: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 30 Jun 2004 16:06:15 -0400
Yeah I tried converting that into binary data but somehow the exact
indentation and spacing are not retained.
"Sunny" <sunnyask@icebergwireless.com> wrote in message
news:ONMXBktXEHA.3516@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> convert the string to byte array and use it. The SetValue method will
> create a binary registry key and will store all the data you need.
>
> Then you have to convert it back as well.
>
> Sunny
>
>
> In article <#2VpNGtXEHA.1888@TK2MSFTNGP10.phx.gbl>,
> HarmanSahni@Hotmail.com says...
> > Any volunteers?
> >
> >
> >
> > "Harman Sahni" <HarmanSahni@Hotmail.com> wrote in message
> > news:ujOL9OsXEHA.3644@TK2MSFTNGP12.phx.gbl...
> > > We have a public and private key pair for Credit Card data encryption.
> > > The database part is all done where we generated the key pair.
> > >
> > > Public key resides in the database for encryption and we intend to
store
> > the
> > > private key in the registry of Windows 2003 server from which our
> > > application will pass it to the stored proc to decrypt back the data.
> > >
> > > Problem is that when we use the "Multi-String" value in the registry
to
> > > store the private key which looks something like
> > >
> > > "----- BEGIN KEY
> > > fooo
> > > bar
> > > tar
> > > "
> > >
> > > we get the error "Data of type REG_MULTI_SZ cannot contain empty
strings,
> > > Registry editor will remove all empty strings found and hence it
messes up
> > > the Key format.
> > >
> > > Question: How can we store the key in the registry?
> > >
> > > Any help is appreciated!
> > >
> > > Rgds,
> > > -H
> > >
> > >
> >
> >
> >
- Next message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Installing Visual Studio 6 AFTER Visual Studio 2003 trial and Office 2003 - Is it safe?"
- Previous message: Harman Sahni: "Re: Windows Regitry - Encryption Key storage"
- In reply to: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Next in thread: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Reply: Sunny: "Re: Windows Regitry - Encryption Key storage"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|