Swiftpack.co - Package - vapor/crypto

Github

link
Stars: 73
Help us keep the lights on

Dependencies

Used By

Total:

Releases

3.3.3 - Apr 22, 2019

Fixed:

  • Trying to parse a malformed RSA key no longer causes a fatalError (#87 - #88)

3.3.2 - Feb 12, 2019

Fixed:

  • Removed dependency on private CNIOOpenSSL package. (#81)

3.3.1 - Jan 17, 2019

Fixed:

  • Fixed a crash that could happen when using RSA with incorrect key type. (#79, #78)
  • Fixed an issue causing OpenSSL error messages to always yield "unknown error". (#79)

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).