SwiftCrypto

1.0.1

A simple wrapper in Swift around the CommonCrypto framework
jernejstrasner/SwiftCrypto

What's New

2018-03-24T22:43:53Z

Fixes issues with unversioned dependencies.

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", .branch("master"))
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: ["SwiftCrypto"]
        ),
    ]
)

Usage

Digest

let hash = "string".sha512

HMAC

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

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Thu Oct 17 2024 15:03:18 GMT-0900 (Hawaii-Aleutian Daylight Time)