High-level cryptography interface powered by libsodium
info
parameter instead of the salt
parameter. This allows us to meet the KDF Security Definition (which is stronger than a mere Pseudo-Random Function).File
class no longer supports the resource
type. To migrate code, wrap your resource
arguments in a ReadOnlyFile
or MutableFile
object.File::asymmetricEncrypt()
and File::asymmetricDecrypt()
.These security improvements were identified through an internal code review after years of studying new cryptographic attacks. Halite v4 ciphertexts are still decryptable with v5, so upgrading should be largely drop-in.
final
access modifier from private methods and guarantees PHP 8 support.ReadOnlyFile
.Throwable
.File
API. Thanks @elliot-sawyer.MutableFile
to be used on resources opened in wb
mode. Thanks @christiaanbaartse.