generalpiston / typeorm-encrypted

Encrypted field for typeorm.
MIT License
74 stars 19 forks source link

Invalid IV length #35

Closed ecorrales1979 closed 3 years ago

ecorrales1979 commented 3 years ago

I was trying to reproduce your examples using column transformer (just copy/paste your code) and got the error: Invalid IV length

I was able to create a new entity, but when I tried to get the data, I got that error. Any hint about this, please?

generalpiston commented 3 years ago

@ecorrales1979 can you provide your configuration? Also, are you adding the library on top of an existing data set?

ecorrales1979 commented 3 years ago

It's working. I just cleaned the typeorm cache and it worked like a charm. Thanks

generalpiston commented 3 years ago

@ecorrales1979 query cache? We should add that to the docs.

ecorrales1979 commented 3 years ago

Yes, the query runner cache. I don't know if others will have this problem, but for me it worked. Thanks