🍕 MD5 in pure Swift

Overview

SwiftHash

❤️ Support my app ❤️

❤️ ❤️ 😇 😍 🤘 ❤️ ❤️

Hash in Swift

CI Status Version Carthage Compatible License Platform

MD5

MD5("https://www.google.com") // 8FFDEFBDEC956B595D257F0AAEEFD623
MD5("https://unsplash.it/600/300/?image=1") // D59E956EBB1BE415970F04EC77F4C875

Installation

CocoaPods

SwiftHash is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftHash'

Carthage

SwiftHash is also available through Carthage. To install just write into your Cartfile:

github "onmyway133/SwiftHash"

Manually

  1. Download and drop /Sources folder in your project.
  2. Congratulations!

Import on your swift file

import SwiftHash 

Author

Khoa Pham, [email protected]

Credit

Contributing

We would love you to contribute to SwiftHash, check the CONTRIBUTING file for more info.

License

SwiftHash is available under the MIT license. See the LICENSE file for more info.

Comments
  • not building in carthage

    not building in carthage

    xcode 8.3 carthage 0.23

    Task failed with exit code 65: /usr/bin/xcrun xcodebuild -project

    This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/lm/vqpb2z590sxb4k5kl98z6_t80000gn/T/carthage-xcodebuild.CqlWjr.log

    opened by nboyd-sportdx 5
  • Add a SwiftPM 4 Package Manifest

    Add a SwiftPM 4 Package Manifest

    ... Swift 3 manifest will be dropped in Swift 5. Both can coexist.

    Avoids a warning like this:

    Resolving https://github.com/onmyway133/SwiftHash.git at 2.0.1
    warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): SwiftHash
    
    opened by helje5 4
  • Use Swift's own wrapping arithmetics

    Use Swift's own wrapping arithmetics

    Swift compiler takes 2-3 seconds to type check this function.

    By using Swift's own wrapping arithmetics operators, we can make this code more readable and faster to compile.

    opened by nzhuk 3
  • MD5 decoding issue

    MD5 decoding issue

    Input: print(MD5("admin123@#").lowercased()) Output: be137a85775380a9ab05ae0d00cca90e

    So now I want to decode it How to do it, using MD5 for swift 3?

    opened by vnanaware 3
  • String Extension

    String Extension

    I'd also be cool to have a string extension, where I could do something like that:

    "https://www.google.com".toMD5() // 8FFDEFBDEC956B595D257F0AAEEFD623
    

    What are your thoughts? I can make a pull request if you want it

    opened by lfarah 2
  • Manual Installation

    Manual Installation

    CocoaPods and Carthage are awesome tools and make our life really easier, but there are some devs who still don't know how to use them.

    It would be cool to add the Manual installation guide in your README.md. You can take a look at my iOS Readme Template to see how you can do it.

    opened by lfarah 0
Releases(2.0.2)
Owner
Khoa
Check my apps https://onmyway133.com/apps
Khoa
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
Read my answer here Importing CommonCrypto in a Swift framework

Read my answer here Importing CommonCrypto in a Swift framework

Khoa 281 Sep 17, 2022
A tiny and easy to use Swift class to encrypt strings using HMAC algorithms.

#Sweet HMAC SweetHMAC is a tiny and easy to use Swift class to encrypt strings using HMAC algorithms. A special thanks to jernejstrasner for shared HM

Jan Cássio 37 Jul 27, 2022
RSA public/private key generation, RSA, AES encryption/decryption, RSA sign/verify in Swift with CommonCrypto in iOS and OS X

SwCrypt Create public and private RSA keys in DER format let (privateKey, publicKey) = try! CC.RSA.generateKeyPair(2048) Convert them to PEM format l

soyer 695 Dec 8, 2022
RSA public/private key encryption in Swift

SwiftyRSA Maintainer(s): @ikeith Public key RSA encryption in Swift. SwiftyRSA is used in the Scoop iOS app to encrypt driver license numbers before s

Scoop 1.1k Jan 5, 2023
Enigma encryption in Swift

?????????????????? ?????????? // Will create an Enigma with an empty plugboard, rotors I, II, III and reflector B (wide). let enigma = Enigma() // Wil

Joakim Gyllström 113 Dec 16, 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 main branch follows the latest currently relea

Marcin Krzyzanowski 9.4k Jan 9, 2023
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
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 Jan 7, 2023
Virgil Crypto stack Objective-C/Swift

Virgil Crypto Library Objective-C/Swift Introduction | Library purposes | Installation | Usage examples | Docs | License | Contacts Introduction Virgi

Virgil Security, Inc. 31 Oct 12, 2022
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
🍕 MD5 in pure Swift

SwiftHash ❤️ Support my app ❤️ Push Hero - pure Swift native macOS application to test push notifications Quick Access - Organise files in the Mac men

Khoa 207 Dec 24, 2022
Pure makes Pure DI easy in Swift.

Pure Pure makes Pure DI easy in Swift. This repository also introduces a way to do Pure DI in a Swift application. Table of Contents Background Pure D

Suyeol Jeon 363 Dec 26, 2022
A fast, pure swift MongoDB driver based on Swift NIO built for Server Side Swift

A fast, pure swift MongoDB driver based on Swift NIO built for Server Side Swift. It features a great API and a battle-tested core. Supporting both MongoDB in server and embedded environments.

null 646 Dec 10, 2022
BCSwiftTor - Opinionated pure Swift controller for Tor, including full support for Swift 5.5 and Swift Concurrency

BCSwiftTor Opinionated pure Swift controller for Tor, including full support for

Blockchain Commons, LLC — A “not-for-profit” benefit corporation 4 Oct 6, 2022
Linenoise-Swift A pure Swift implementation of the Linenoise library. A minimal, zero-config readline replacement.

Linenoise-Swift A pure Swift implementation of the Linenoise library. A minimal, zero-config readline replacement. Supports Mac OS and Linux Line edit

Andy Best 114 Dec 14, 2022
Swift backend / server framework (Pure Swift, Supports Linux)

NetworkObjects NetworkObjects is a #PureSwift backend. This framework compiles for OS X, iOS and Linux and serves as the foundation for building power

Alsey Coleman Miller 258 Oct 6, 2022
Swift backend / server framework (Pure Swift, Supports Linux)

NetworkObjects NetworkObjects is a #PureSwift backend. This framework compiles for OS X, iOS and Linux and serves as the foundation for building power

Alsey Coleman Miller 258 Oct 6, 2022
Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library. (Pure Swift, Supports Linux)

SwiftFoundation Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library. Goals Provide a cross-platform in

null 620 Oct 11, 2022