Swiftpack.co - jernejstrasner/SwiftCrypto as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jernejstrasner.
jernejstrasner/SwiftCrypto 1.0.3
A simple wrapper in Swift around the CommonCrypto framework
⭐️ 41
🕓 4 years ago
.package(url: "https://github.com/jernejstrasner/SwiftCrypto.git", from: "1.0.3")

SwiftCrypto

A simple wrapper in Swift around the CommonCrypto framework.

Build Status

Swift Package Manager

// swift-tools-version:5.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: 41
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

6 years ago

Fixes issues with unversioned dependencies.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics