Swiftpack.co - Package - vapor/crypto

Github

link
Stars: 61
Help us keep the lights on

Releases

3.2.0 - May 31, 2018

New:

  • RSA now has encrypt and decrypt static methods (#64).
  • New secureCompare(to:) method on Collection (#67).

Fixed:

  • Default AES mode is no longer ECB (#59, #66).
  • New AES cipher modes have been added (#60).
  • Fixed some incorrect usages of withUnsafeBuffer (#64).
  • BCryptDigest now uses secure compare when verifying hashes (#67).
  • CryptoRandom and OSRandom are now structs (#65).

2.1.3 - May 30, 2018

Fixed:

  • Eliminate warnings for Swift 4.1 (#63).

3.1.2 - May 7, 2018

Fixed:

  • Fixed a typo in error messages regarding IV length (#61).

Milestone: 3.1.2

3.1.1 - Apr 26, 2018

Fixed:

  • BCrypt.hash(...) will now throw a more helpful error if the cost value is invalid (#58).

Milestone: 3.1.1

3.1.0 - Apr 20, 2018

New:

  • BCrypt is now based on a C implementation meaning BCrypt hashes won't take longer for debug builds. (#55)

Fixed:

  • ⚠️ BCrypt.hash(...) now returns a String. Previously it returned Data which was a bug. BCrypt hashes are formatted as UTF-8 encoded Strings and should be returned as such. (#55)

Milestone: 3.1.0