Created
December 9, 2020 21:17
-
-
Save edsonmsantos/26181a1f99637a9c8537c785a54bd129 to your computer and use it in GitHub Desktop.
[Descriptografar arquivo com OpenSSL] #php
This file contains hidden or 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