Skip to content

MiclausCorp/ripemd160-Swift

Repository files navigation

ripemd160-Swift

A Swift implementation of the RIPE Message Digest 160 (ripemd160) Hashing Algorithm.

Build Status Get on SPM

Installation

Swift Package Manager

You can use Swift Package Manager and specify dependency in Package.swift by adding this:

.package(url: "https://github.com/MiclausCorp/ripemd160-Swift.git", branch: "master")

Example Usage

Hashing a string

let message = "Hello, World!"
let hash = RIPEMD160.hash(message)

print(hash) // prints raw bytes

Hash-Based Message Authentication Code

let key = "key"
let message = "Hello, World!"

let hmac = RIPEMD160.hmac(key: key, message: message)
print(hmac) // prints raw bytes

Performance

Compute Benchmark

Tests provided by and run on AWS EC2 P3dn.24xlarge Cloud Super Workstation configured using:

  • 8x NVIDIA Tesla V100 GPU (256 GB, 960 CUDA Cores and 5.120 Tensor Cores in total);
  • 96 core Intel Xeon 8175M;
  • 768 GB RAM
  • 2x 900 GB NVMe SSD
  • 100 Gbps networking

License

MIT License

About

Swift implementation of the ripemd160 Hashing Algorithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages