Crypt-Sodium-XS

 view release on metacpan or  search on metacpan

lib/Crypt/Sodium/XS/secretstream.pm  view on Meta::CPAN


Ratcheting: at any point in the stream, it is possible to "forget" the key used
to encrypt the previous messages, and switch to a new key.

=back

L<Crypt::Sodium::XS::secretstream> can be used to securely send an ordered
sequence of messages to a peer. Since the length of the stream is not limited,
it can also be used to encrypt files regardless of their size.

It transparently generates nonces and automatically handles key rotation.

=head1 CONSTRUCTOR

The constructor is called with the C<Crypt::Sodium::XS-E<gt>secretstream>
method.

  my $sstream = Crypt::Sodium::XS->secretstream;
  my $sstream
    = Crypt::Sodium::XS->secretstream(primitive => 'xchacha20poly1305');



( run in 1.078 second using v1.01-cache-2.11-cpan-e93a5daba3e )