Latest 0.4.0
Homepage https://github.com/chrisamanse/CryptoKit
License MIT
Platforms ios 9.0, osx 10.10, watchos 2.0, tvos 10, requires ARC
Authors

CryptoKit 🔑

Build Status
Swift Version
Carthage compatible
spm compatible
CocoaPods compatible
Platform

A Swift framework containing implementations of cryptographic functions.

Features

Hashing Algorithms

  • [x] MD5
  • [x] SHA-1
  • [x] SHA-224
  • [x] SHA-256
  • [x] SHA-384
  • [x] SHA-512

HMAC (Hash-based Message Authentication Code)

  • [x] HMAC (using any of the implemented hash functions)

Usage

Try CryptoKit API right now in IBM Swift Sandbox.

Hash / Digest


let message = "The quick brown fox jumps over the lazy dog".data(using: .utf8)!

let hash = message.digest(using: .sha256) // Supports MD5, SHA-1 and SHA-2 variants

HMAC


let hmac = HMAC(key: secret, message: message, hashFunction: .sha1)

License

Copyright (c) 2016 Joe Christopher Paul Amanse

This software is distributed under the MIT License.

Latest podspec

{
    "name": "CryptoKit",
    "version": "0.4.0",
    "summary": "Pure Swift implementations of cryptographic functions",
    "description": "CryptoKit is a Swift framework containing implementations of cryptographic functions.",
    "homepage": "https://github.com/chrisamanse/CryptoKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chris Amanse": "[email protected]"
    },
    "social_media_url": "http://twitter.com/ChrisAmanse",
    "platforms": {
        "ios": "9.0",
        "osx": "10.10",
        "watchos": "2.0",
        "tvos": "10"
    },
    "source": {
        "git": "https://github.com/chrisamanse/CryptoKit.git",
        "tag": "0.4.0"
    },
    "source_files": [
        "Sources",
        "Sources/**/*.{h,swift}"
    ],
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This