-
-
Save lucenarenato/f7623f3f482de5a66e4c39dac5a0a25d to your computer and use it in GitHub Desktop.
[Descriptografar arquivo com OpenSSL] #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
exec('openssl enc -aes-256-cbc -pbkdf2 -k 102030 -in /mnt/c/Lixo/a.enc.txt -out /mnt/c/Lixo/b.txt');// Encrypt | |
exec('openssl enc -aes-256-cbc -pbkdf2 -k 102030 -d -in /mnt/c/Lixo/a.enc.txt -out /mnt/c/Lixo/b.txt');// Decrypt | |
/** | |
É nescessário possuir o OpenSSL no computador, se for windows, basta realizar o download dos seguintes arquivos e adicionar a um diretório que esteja na path do sistema. | |
https://host.sisecf.app/arquivos/openssl/msys-crypto-1.1.dll | |
https://host.sisecf.app/arquivos/openssl/msys-ssl-1.1.dll | |
https://host.sisecf.app/arquivos/openssl/openssl.exe | |
ou | |
https://host.sisecf.app/arquivos/openssl/files.tgz | |
**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment