Skip to content

Releases: tayloraswift/swift-hash

0.6.3

02 Sep 03:33
4d70a94
Compare
Choose a tag to compare

What's Changed

  • Support macOS 10.15, iOS 13, tvOS 13, and watchOS 6 by @stackotter in #18

New Contributors

Full Changelog: 0.6.2...0.6.3

0.6.2

02 Jul 01:03
Compare
Choose a tag to compare

what’s changed

  • adds support for the MD5 hash
  • Base64 decoder now handles the URL-safe variant
  • Base64 encoder can now encode with the URL-safe character set, using encode(_:padding:with:)
  • allow configuring the Base64 padding

0.4.1

16 Nov 23:07
Compare
Choose a tag to compare
  • relaxes the input requirement of Base16 and Base64 decoders to skip over non-digit characters. (previously, the library was interpreting them as zeroes).

0.4.0

13 Nov 18:59
9ea135f
Compare
Choose a tag to compare

adds support for password-based key derivation (PBKDF2). this is a minor version bump because HMAC APIs have changed in a breaking manner.

instead of

let hmac:SHA256 = .hmac(message, key: key)

now do:

let hmac:SHA256 = .init(authenticating: message, key: key)

v0.4.0 also expands test coverage.

0.3.0

12 Nov 21:23
d213ae0
Compare
Choose a tag to compare
  • vastly simplifies the litany of Base16 encoding and decoding APIs.
  • adds support for Base64 encoding and decoding.
  • improves test coverage
  • improves docstring coverage

v0.2.3

26 Aug 05:11
a3cb6b6
Compare
Choose a tag to compare

v0.2.3 of swift-hash adds RandomAccessCollection conformance to SHA256, and adds support for CRC32 hashes.