laravel-database-encryption icon indicating copy to clipboard operation
laravel-database-encryption copied to clipboard

Need help with `DB_ENCRYPTION_VERSIONING=false` in .env file

Open kalessil opened this issue 6 years ago • 3 comments

Thank you for a great extension, it's very smooth to integrate!

We have some tables with personal data, which we want to be encrypted. One small consideration was database size and we started configuring header generation, currently configuration looks like this:

# somewhere in .env file
DB_ENCRYPTION_ENABLED=true
DB_ENCRYPTION_PREFIX=:
DB_ENCRYPTION_VERSIONING=false

what produces following results: :versionVERSION-00-01-02typestring[native]... (output from console select command).

And I got stuck with disabling versionVERSION-00-01-02typestring[native] and need help: how to disable it?

kalessil avatar Jan 08 '19 13:01 kalessil

Has there been any update on this, I am trying to achieve the same result.

Cypher1983 avatar Nov 04 '19 08:11 Cypher1983

@kalessil @Cypher1983 -- Can you provide a reproducible example? Want to make sure I'm following correctly.

austinheap avatar Nov 21 '19 05:11 austinheap

Huh, it was quite a while ago: I wanted to have ":encrypted-data-here" or "encrypted:encrypted-data-here" persisted in database. To replace prefix generation with pre-defined string.

Following official docs didn't bring me firther, so I think we did implement custom encryption behaviour in that project.

That as much details as I can remember.

kalessil avatar Nov 22 '19 14:11 kalessil