- or download this
# Sender
$cipher->start('encrypting');
print $sock $cipher->crypt($_) while <STDIN>;
print $sock $cipher->finish();
- or download this
# Receiver
$cipher->start('decrypting');
local $/ = \4096;
process_bytes($cipher->crypt($_)) while <$sock>;
process_bytes($cipher->finish());
- or download this
# Interactive receiver
$cipher->start('decrypting');
...
process_bytes($cipher->crypt($buf));
}
process_bytes($cipher->finish());