[nhusers] Re: Encrypting binary columns

2009-10-14 Thread kasvis...@gmail.com

After giving it some thought, I should be able to implement
EncryptedBinary which should be a simplified version of the
EncryptedString.

This difference being that the EncryptedString accepts and returns
encoded strings whereas the EncryptedBinary will directly work off Byte
[].

i am going to implement this and let you know if it works.

thanks

On Oct 13, 4:34 pm, kasvis...@gmail.com kasvis...@gmail.com wrote:
 In the mapping file, I have declared the column as BinaryBlob. I am
 not sure if the EncryptedString could be used directly.

 On Oct 13, 3:34 pm, Tuna Toksoz tehl...@gmail.com wrote:

  It is basically the same?

  Tuna Toksöz
  Eternal sunshine of the open source mind.

 http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...

  On Tue, Oct 13, 2009 at 10:32 PM, kasvis...@gmail.com
  kasvis...@gmail.comwrote:

   Hi,

   I am developing an application that is storing sensitive data. I have
   implemented the IUserType EncryptedString to encrypt and decrypt
   strings. But I also have a requirement to encrypt any attachments
   before saving it to the database.

   How do I go about implementing an IUserType for encrypting
   attachments.

   Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
nhusers group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~--~~~~--~~--~--~---



[nhusers] Re: Encrypting binary columns

2009-10-14 Thread Jay

I am using Fluent Nhibernate for the mapping files. I have defined the
CustomSqlType as BinaryBlob in the mapping file for the attachment
column.  I suspect I might have to create a new IUserType  to work
with BinaryBlob type.



On Oct 13, 3:34 pm, Tuna Toksoz tehl...@gmail.com wrote:
 It is basically the same?

 Tuna Toksöz
 Eternal sunshine of the open source mind.

 http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike

 On Tue, Oct 13, 2009 at 10:32 PM, kasvis...@gmail.com
 kasvis...@gmail.comwrote:



  Hi,

  I am developing an application that is storing sensitive data. I have
  implemented the IUserType EncryptedString to encrypt and decrypt
  strings. But I also have a requirement to encrypt any attachments
  before saving it to the database.

  How do I go about implementing an IUserType for encrypting
  attachments.

  Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
nhusers group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~--~~~~--~~--~--~---



[nhusers] Re: Encrypting binary columns

2009-10-13 Thread kasvis...@gmail.com

In the mapping file, I have declared the column as BinaryBlob. I am
not sure if the EncryptedString could be used directly.


On Oct 13, 3:34 pm, Tuna Toksoz tehl...@gmail.com wrote:
 It is basically the same?

 Tuna Toksöz
 Eternal sunshine of the open source mind.

 http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike

 On Tue, Oct 13, 2009 at 10:32 PM, kasvis...@gmail.com
 kasvis...@gmail.comwrote:



  Hi,

  I am developing an application that is storing sensitive data. I have
  implemented the IUserType EncryptedString to encrypt and decrypt
  strings. But I also have a requirement to encrypt any attachments
  before saving it to the database.

  How do I go about implementing an IUserType for encrypting
  attachments.

  Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
nhusers group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~--~~~~--~~--~--~---