You need to blacklist the shell_exec
from the safe mode
.
Sidenote : If it works, you need to escape the $string
using the escapeshellarg()
before passing it to your shell_exec()
function.
Like this..
function encryptTFS($string) {
$output = shell_exec('tea32 -e -"'.escapeshellarg($string).'" -ofilenameoutout');
echo "<pre>$output</pre>";
}
$string = "some_string";
$encryptedString = encryptTFS($string);