[ create a new paste ] login | about

Link: http://codepad.org/KZqqPuUL    [ raw code | output | fork ]

PHP, pasted on Sep 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

$gpg = '/usr/bin/gpg';
$gpgrecipient = 'email';
$mailrecp = 'email';
$plain = 'Here is the encrypted Text Here is the encrypted Text Here is the
    encrypted Text Here is the encrypted Text Here is the encrypted Text Here is the
    encrypted Text Here is the encrypted Text Here is the encrypted Text Here is the  
    encrypted Text';


$plain = escapeshellarg($plain);

$cmd = "echo -n {$plain} | {$gpg} --no-auto-check-trustdb --lock-never -e -a -r {$gpgrecipient} ";

echo $cmd;


Output:
1
2
3
4
echo -n 'Here is the encrypted Text Here is the encrypted Text Here is the
    encrypted Text Here is the encrypted Text Here is the encrypted Text Here is the
    encrypted Text Here is the encrypted Text Here is the encrypted Text Here is the  
    encrypted Text' | /usr/bin/gpg --no-auto-check-trustdb --lock-never -e -a -r email 


Create a new paste based on this one


Comments: