Encrypt-Filter

(encrypt-output port encryption-key encryption-function) -> port

A wrapper for other ports that will automatically break transmissions into blocks, and transmit using a key.

See Also: decrypt-input

Example:

>> (define aes (make-aes-key 256))
:: #f
>> (define alphaport (open-output-string))
:: #f
>> (define betaport (encrypt-output alphaport aes aes-encrypt))
:: #f
>> (write "Test" betaport)
:: #f
>> (define gammaport (decrypt-input alphaport aes aes-decrypt))
:: #f
>> (write "Test" betaport)
:: #f
>> (read gammaport)
:: "Test"

holding