The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Argon::SecureChannel - Encrypted Argon::Channel

VERSION

version 0.17

DESCRIPTION

An Argon::Channel which implements Argon::Encryption to encrypt all messages sent. Additionally adds a unique identifier for the channel to assist with the tracking of message circuits in the Ar network.

ATTRIBUTES

on_ready

SecureChannel adds an additional setup step during initialization. The on_ready callback is triggered once that setup has completed and the channel is ready for use.

remote

Holds the identifier for the speaker on the remote end of the channel. If not provided, the channel will not be ready (see "on_ready") until the remote side has identified itself. Any received messages whose "token" in Argon::Message does not match the expected value are rejected.

METHODS

is_ready

Returns true once the remote side has identified itself (remote has been set).

identify

Identifies this side of the channel to the remote end by sending its "token" in Argon::Encryption.

AUTHOR

Jeff Ober <sysread@fastmail.fm>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jeff Ober.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.