soarecostin / file-vault

A Laravel package for encrypting and decrypting files of any size
MIT License
185 stars 62 forks source link

[Question] How to decrypt files with custom key? #27

Open sanhosey opened 1 year ago

sanhosey commented 1 year ago

Hey @soarecostin,

I encrypt my uploaded files with a custom key and save the key in a separate database (per file one key). But I can't decrypt my files. Am I missing something or am I just too stupid?

Thanks in advance.

sanhosey commented 1 year ago

Addition: I also set the key in the config before using the streamDecrypt function.

sanhosey commented 1 year ago

Nevermind, i found my problem.