[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: encryption
I always prefer to turn the byte[N] into a hexadecimal string, store that
as varchar(N) [or is it 2N ..] and then convert it back on the way out.
This is primarily because I felt varchars were a nice simple format
without any pain. It's also nice as I'll use the same format when
debugging the key.
Hen
On Mon, 20 Jan 2003, Wade Steele wrote:
> I have some code to generate a Key. What I need to do is store this key
> into a database so that I can retrieve it at a later time to decrypt a
> string. What is the easiest way of handling this? It would be nice if
> there was a way of converting it to a different format, that could be
> persisted, retrieved again, and converted back to a Key.
>
> Any help would be great. Possibly a BLOB? I haven't a clue.
>
> Thanks,
>
> Wade
>
>
>