Swift framework wrapping CommonCrypto's SHA256 methods.

Overview

SHA256-Swift

Swift framework wrapping CommonCrypto's SHA256 methods.

This is experimental. Do not use this in a production system.

Installation instructions

  1. Add the SHA256-Swift project to your existing project either through a workspace or as a subproject.
  2. Link the appropriate framework (either SHA256iOs or SHA256Mac).
  3. Where required, import SHA256iOs
  4. In your main project, add the path to the CommonCrypto module directory to your Swift import paths. ${SRCROOT}/SHA256-Swift/CommonCrypto for example.
Comments
  • Playground not working

    Playground not working

    I created a Mac playground to demonstrate this framework. I have been successful at getting some of the other CryptoCoinSwift frameworks to work in a playground, but not this one.

    The framework uses a module.map file to access CC_SHA256, as described here. I wrote an XCTestCase which successfully loads my framework and performs a hash. I'm also able to import and use the framework in other frameworks.

    When I try import SHA256Mac into a playground it says "Missing required module 'CommonCrypto". When I try import CommonCrypto it says: No such module "CommonCrypto".

    I set the current scheme to the Mac framework. Defines Module is set to yes.

    See also my post on the Apple Developer Forum.

    opened by Sjors 4
  • Update documentation and swift code for Beta 7

    Update documentation and swift code for Beta 7

    I updated the .gitignore to include .DS_Store files, added installation instructions and modified the .swift file to use the String append method instead of +=.

    Thanks for writing this module, btw. Writing CommonCrypto swift code is no joke. You saved me hours and hours of Google sleuthing.

    opened by jkubicek 2
  • Travis integration

    Travis integration

    I have experience with Travis, but never used it with Swift. If someone knows how to set this up, I can approve pull requests a lot faster, since I won't have to run things on my own machine.

    opened by Sjors 0
  • Project

    Project "SHA256.xcodeproj" has no shared schemes

    When I clone and build with cmd 'carthage update', I get the error like this below:

    Project "SHA256.xcodeproj" has no shared schemes

    carthage version 0.7.4

    opened by coolgeng 3
  • Getting Compiler Error:

    Getting Compiler Error: "Could not build Objective-C module 'CommonCrypto'" when building in Xcode 6.1

    Thanks for putting this out there. I was looking at the technique you employed to import the CommonCrypto routines.

    This Stack Overflow question got me here:

    http://stackoverflow.com/questions/25248598/importing-commoncrypto-in-a-swift-framework

    It looks like the path defined in the module needs to be updated. Not sure how to make this relative to Xcode installation

    opened by dmcgloin 1
Owner
Cryptocoin for Swift
Cryptocoin for Swift
A framework for the JOSE standards JWS, JWE, and JWK written in Swift.

JOSESwift is a modular and extensible framework for the JOSE standards JWS, JWE, and JWK written in Swift. ?? Please note that this implementation of

Airside Mobile, Inc. 162 Dec 15, 2022
Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.

Themis provides strong, usable cryptography for busy people General purpose cryptographic library for storage and messaging for iOS (Swift, Obj-C), An

Cossack Labs 1.6k Dec 30, 2022
Framework for biometric authentication (via TouchID) in your application

Features Requirements Communication Installation Usage Intro Biometric authentication availability Feature enabled/disabled for biometric authenticati

Igor Vasilenko 29 Sep 16, 2022
A privacy-focused app using Apple's soon-to-be-released contact tracing framework.

A privacy-focused app using Apple's soon-to-be-released contact tracing framework.

Crunchy Bagel Pty Ltd 350 Oct 16, 2022
RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).

BlueRSA Swift cross-platform RSA wrapper library for RSA encryption and signing. Works on supported Apple platforms (using Security framework). Linux

Kitura 122 Dec 16, 2022
RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).

BlueRSA Swift cross-platform RSA wrapper library for RSA encryption and signing. Works on supported Apple platforms (using Security framework). Linux

Kitura 122 Dec 16, 2022
Swift-problem-solving - Swift 알고리즘 맛보기 😋

swift-problem-solving Swift 로 알고리즘 익히기 ?? Programmers 난이도 풀이 문제 바로가기 Lv.2 오픈채팅방 링크 Lv.3 다단계 칫솔 판매 링크 Lv.3 합승 택시 요금 링크 Leetcode 난이도 풀이 문제 바로가기 Medium 1

jegyun 3 Dec 27, 2022
Swift-cuckoo-collections - Cross-platform Swift dictionaries & sets that use a cuckoo hashing algorithm

CuckooCollections A Swift package for open-addressed sets and dictionaries that

Christopher Richez 0 Aug 2, 2022
Helps you define secure storages for your properties using Swift property wrappers.

?? Secure Property Storage Helps you define secure storages for your properties using Swift property wrappers. ?? Features All keys are hashed using S

Alex Rupérez 443 Jan 4, 2023
Swift cross-platform crypto library using CommonCrypto/libcrypto

BlueCryptor Swift cross-platform crypto library derived from IDZSwiftCommonCrypto. IMPORTANT NOTE: This release is NOT entirely source code compatible

Kitura 183 Oct 15, 2022
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift

CryptoSwift Crypto related functions and helpers for Swift implemented in Swift. (#PureSwift) Note: The master branch follows the latest currently rel

Marcin Krzyzanowski 9.4k Jan 5, 2023
A wrapper for Apple's Common Crypto library written in Swift.

IDZSwiftCommonCrypto A Swift wrapper for Apple's CommonCrypto library. IDZSwiftCommonCrypto works with both CocoaPods and Cathage. For more details on

idz 472 Dec 12, 2022
CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc

RNCryptor Cross-language AES Encryptor/Decryptor data format. The primary targets are Swift and Objective-C, but implementations are available in C, C

null 3.3k Dec 30, 2022
Elegant Swift interface to access the CommonCrypto routines

SCrypto [Overview • Requirements • Installation • Usage • Alternatives • Licence] Overview SCrypto provides neat Swift interface to access the CommonC

Max 39 Mar 31, 2022
Simple and secure hashing in Swift with the SipHash algorithm

SipHash ⚠️ WARNING This package has been obsoleted by the Hasher type and the Hashable.hash(into:) requirement introduced in Swift 4.2. Using this pac

null 262 Dec 19, 2022
Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.

KeychainAccess KeychainAccess is a simple Swift wrapper for Keychain that works on iOS and OS X. Makes using Keychain APIs extremely easy and much mor

Kishikawa Katsumi 7.2k Dec 30, 2022
A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.

Latch A simple Swift 2.0 Keychain Wrapper for iOS, watchOS 2, and OS X. Usage A proper example of how to use Latch can be seen in the tests. import La

Danielle 56 Oct 25, 2022
A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.

SwiftKeychainWrapper A simple wrapper for the iOS / tvOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift. Prov

Jason 1.5k Dec 30, 2022
Swift cross-platform crypto library using CommonCrypto/libcrypto

BlueCryptor Swift cross-platform crypto library derived from IDZSwiftCommonCrypto. IMPORTANT NOTE: This release is NOT entirely source code compatible

Kitura 183 Oct 15, 2022