Skip to content

Releases: spaze/encryption

Support PHP 8.4

26 Oct 00:04
095408b
Compare
Choose a tag to compare
  • Support PHP 8.4 (#19)

v2: support key prefixes, renamed class, no key groups

19 Jan 21:40
ad1dceb
Compare
Choose a tag to compare

Backwards compatibility breaks

  • Rename Symmetric\StaticKey class to SymmetricKeyEncryption (#12)
  • Use custom exceptions but new classes extend from the old ones, so your catch blocks should still work (#14)
  • Drop key group constructor param, you can always just pass particular keys (#16)
  • Add a prefix to encryption keys so they're easier to find with tools like Gitleaks (#18)

Other changes

  • Require PHP 8.2 (#13)
  • Hide sensitive keys and plaintext from stack traces with SensitiveParameter attributes available starting PHP 8.2 (#15)
  • Generate code coverage report (#17)

Support PHP 8.3

28 Oct 14:28
5d50c09
Compare
Choose a tag to compare

What's Changed

Support PHP 8.2

27 Nov 01:48
a763408
Compare
Choose a tag to compare
  • Tests are now running on PHP 8.2 as well (#7)
  • Internal code cleanup, uses, throws, types, [] instead of list() (#8)
  • "Tests passing" badge in README (#9)

Require PHP 8.0 at least

19 Jan 14:08
Compare
Choose a tag to compare

... not only because this release uses Halite v5 which requires PHP 8.0 at least.

Needs re-encrypt?

14 Apr 01:34
Compare
Choose a tag to compare
  • Added needsReEncrypt(): bool to see if the ciphertext was encrypted using an inactive key and thus should be re-encrypted ("key rotation") with the currently active one (#3, thanks @stpnkcrk!)
  • Tests, at last!

PHP 8.0 support

11 Dec 04:55
a7e153e
Compare
Choose a tag to compare
  • Explicitly support PHP 8.0
  • Run code tests on GitHub Actions
  • Support paragonie/hidden-string 2.0.0