l0ve2hat3 Posted August 20, 2009 Share Posted August 20, 2009 I want to know if the following is possible: a) interactive system() command. I need to encrypt a file using "gpg -c myfile" but from command line you need to enter the pass phrase 2 times after calling that command. so something like: system("gpg -c myfile"); system("test");system("test"); or b) if there is an easier way to encrypt a file Link to comment https://forums.phpfreaks.com/topic/171072-php-system-and-gpg/ Share on other sites More sharing options...
trq Posted August 20, 2009 Share Posted August 20, 2009 Plenty of ways to encrypt a file (See here). Otherwise, take a look at expect. Link to comment https://forums.phpfreaks.com/topic/171072-php-system-and-gpg/#findComment-902260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.