Swiftpack.co - Package - jernejstrasner/SwiftCrypto

SwiftCrypto

A simple wrapper in Swift around the CommonCrypto framework.

Build Status

Swift Package Manager

// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "YourProject",
    dependencies: [
        .package(url: "https://github.com/jernejstrasner/SwiftCrypto.git", from: "1.0.1")
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: ["SwiftCrypto"]
        ),
    ]
)

Usage

Digest

let hash = "string".sha512

HMAC

let hmac = "string".digest(.SHA512, key: "some key")

Github

link
Stars: 16
Help us keep the lights on

Releases

1.0.1 - Mar 24, 2018

Fixes issues with unversioned dependencies.

1.0.0 - Mar 24, 2018

First production-ready release!