Skip to content

tayloraswift/swift-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hash

Tests Documentation

swift-hash is an inline-only microframework providing generic, pure-Swift implementations of various hashes, checksums, and binary utilities.

Requirements

The swift-hash library requires Swift 6.0 or later.

Platform Status
🐧 Linux Tests
🍏 Darwin Tests
🍏 Darwin (iOS) iOS
🍏 Darwin (tvOS) tvOS
🍏 Darwin (visionOS) visionOS
🍏 Darwin (watchOS) watchOS

Check deployment minimums

products

This package vends the following library products:

  1. Base16

    Tools for encoding to and decoding from base-16 strings.

  2. Base64

    Tools for encoding to and decoding from base-64 strings.

  3. CRC

    Implements CRC-32 checksums.

  4. MD5

    Implements MD5 hashing function.

  5. MessageAuthentication

    Implements hash-based message authentication codes (HMACs) through protocols that types in the other modules conform to.

  6. SHA1

    Unimplemented: SHA-1 hashing function.

  7. SHA2

    Implements the SHA-256 hashing function.

  8. UUID

    Provides a UUID type.