Swiftpack.co - Package - vapor/crypto

Github

link
Stars: 61
Help us keep the lights on

Releases

3.3.0 - Sep 25, 2018

New:

  • OpenSSL 1.1 support. (#74, #75)
  • AES GCM now properly supports tags. (#68, #71)
  • TOTP and HOTP support have been added. (#72)
import Crypto

let code = TOTP.SHA1.generate(secret: "hi")
print(code) "123456"

Fixed:

  • This package's private C libraries have been renamed and updated. (#75)

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