soarecostin / file-vault

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

How do I decrypt a file encrypted using this library on Mac OS? #32

Open dev-databee opened 4 months ago

dev-databee commented 4 months ago

Tried the below command:

openssl enc -d -aes-256-cbc  -in  Lxx1H0wxp2QEprZvUGetIoxIzHKkpeAH6nf515IL.txt.bad.enc -out Lxx1H0wxp2QEprZvUGetIoxIzHKkpeAH6nf515IL.txt.bad

When asked for password I am not sure how to enter it. Coz the password generated is binary. I tried base64 encoding and passing it and also tried writing the binary to a file and using stdin.

Both cases I get bad magic number error. But the file decrypts properly using the library