Skip to content

Release of package sodium - Version 3.2.0

Compare
Choose a tag to compare
@Skycoder42 Skycoder42 released this 18 Aug 17:32
8a1bcea

Changelog

3.2.0 - 2024-08-18

Added

  • Added crypto.secretStream.pushChunked and crypto.secretStream.pullChunked
    • Serve as a replacement for the deprecated push and pull APIs
    • Allow for a secure and bug-free encryption of files and other binary streams
      by requiring a chunkSize that is used to partition the incoming binary
      data into fix-sized chunks, just as the API expects.
  • Added file encryption/decryption example

Deprecated

  • Deprecated crypto.secretStream.push and crypto.secretStream.pull
    • These methods where error prone and hard to use, as the API assumes that
      the stream events are pre-chunked and "separate" from each other, while
      Stream<List<int>> in dart typically means an "arbitrary binary stream"
    • Use pushChunked and pullChunked as replacement
    • Related: #114, #52, #26

The package and it's documentation are available at pub.dev.