Encryption using Type Converter - Initialization Vector

Posts   
 
    
ErinaG
User
Posts: 22
Joined: 31-Dec-2014
# Posted on: 19-Oct-2018 17:37:43   

Using LLBLGen 5.3 - we have written an LLBLGen type converter for encrypting database fields. As part of our encryption process, we would like to set an initialization vector to something unique for each entity. Is there any way to retrieve data about the entity from the type converter? If not, would you have any suggestions on how to proceed?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 21-Oct-2018 16:22:41   

The type converter doesn't get any info about the entity (or field for that matter), so the initial value isn't going to work that way.

The value you want to use per entity is an encryption key or a seed for a RNG?

Frans Bouma | Lead developer LLBLGen Pro
ErinaG
User
Posts: 22
Joined: 31-Dec-2014
# Posted on: 22-Oct-2018 15:44:44   

Hi Otis,

We want a different salt/initialization vector for each entity. I believe we have come up with a way to do this - namely, we append the salt to the end of the field value before setting it, then we can strip/manipulate it as needed in the TypeConverter.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 22-Oct-2018 16:09:16   

Ah that's indeed a clever way of doing it! simple_smile I think that will work OK simple_smile

Frans Bouma | Lead developer LLBLGen Pro