Closed plarson closed 1 year ago
Hi! Thank you for the PR. This will not be merged because you can already use MacAlgorithm.empty if you don't have a MAC:
final algorithm = Chacha20(macAlgorithm: MacAlgorithm.empty);
Thank you, I missed that.
This allows skipping the
Mac
check when decrypting aSecretBox
inDartCipher
.In the project I am working on, I need to be able to decrypt with an empty
Mac
in theSecretBox
. Other locations in the library allow skipping authentication checks and supportnull
.