Swiftpack.co - Package - vapor/crypto

Github

link
Stars: 49
Help us keep the lights on

Releases

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

3.0.1 - Apr 12, 2018

New:

  • Added RSAKey.components(...), a method for creating RSA keys from component values. (#51)
  • DigestAlgorithm now conforms to Equatable (#49)

Fixed:

  • Updated to latest LosslessDataConvertible. (#52)

API Docs: https://api.vapor.codes/crypto/latest/Crypto

Milestone: 3.0.1

3.0.0 - Apr 3, 2018

New:

  • Added Cipher class for encrypting and decrypting data.
  • Refactored BCrypt to make more consistent with other types and minimize API surface.

Docs: https://docs.vapor.codes/3.0/crypto/getting-started/

API Docs: https://api.vapor.codes/crypto/3.0.0/Crypto https://api.vapor.codes/crypto/3.0.0/Random

Milestone: 3.0.0

3.0.0-rc.3 - Mar 23, 2018

New:

API Docs: https://api.vapor.codes/crypto/3.0.0-rc.3/Crypto

Milestone: 3.0.0-rc.3

3.0.0-rc.2 - Mar 21, 2018

New:

  • Vapor is now running on Swift NIO!
  • Crypto now relies on NIO OpenSSL for RSA. (Planning on rolling this out to other crypto in this package to lower maintenance burden going forward)
  • RSA can now parse x509-formatted public key certificates.

On macOS, you must run:

brew install libressl

On Linux, you must run:

apt-get install libssl-dev

Fixed:

  • RSA now correctly parses DER-encoded PEM files.

Milestone