All Projects → idrougge → sha1-swift

idrougge / sha1-swift

Licence: Unlicense License
SHA-1 implementation in Swift

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to sha1-swift

Encrypt Body Spring Boot Starter
(停止维护,替代品搜索:https://github.com/search?l=Java&q=encrypt&type=Repositories )SpringBoot控制器统一的响应体加密与请求体解密的注解处理方式,支持MD5/SHA/AES/DES/RSA
Stars: ✭ 198 (+582.76%)
Mutual labels:  sha1
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+665.52%)
Mutual labels:  sha1
veye-checker
This projects creates SHA values for locale binaries - Shazam for packages.
Stars: ✭ 22 (-24.14%)
Mutual labels:  sha1
Jsrsasign
The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.
Stars: ✭ 2,760 (+9417.24%)
Mutual labels:  sha1
BruteForce
A simple brute forcer written in GO for SHA1, SHA256, SHA512, MD5 and bcrypt
Stars: ✭ 49 (+68.97%)
Mutual labels:  sha1
WebCrypto.swift
A small collection of cryptographic functions based on the JavaScript WebCrypto API.
Stars: ✭ 16 (-44.83%)
Mutual labels:  sha1
Badssl.com
🔒 Memorable site for testing clients against bad SSL configs.
Stars: ✭ 2,234 (+7603.45%)
Mutual labels:  sha1
hediye
Hash Generator & Cracker
Stars: ✭ 40 (+37.93%)
Mutual labels:  sha1
rsa aes md5
RSA(SHA1withRSA/pem私钥0/crt证书公钥) + AES(256/AES/CBC/PKCS5Padding)
Stars: ✭ 11 (-62.07%)
Mutual labels:  sha1
Hashrat
Hashing tool supporting md5,sha1,sha256,sha512,whirlpool,jh and hmac versions of these. Includes recursive file hashing and other features.
Stars: ✭ 46 (+58.62%)
Mutual labels:  sha1
Wjcryptlib
Public Domain C Library of Cryptographic functions. Including: MD5, SHA1, SHA256, SHA512, RC4, AES, AES-CTR, AES-OFB, AES-CBC
Stars: ✭ 250 (+762.07%)
Mutual labels:  sha1
PwnedPasswordsChecker
Search (offline) if your password (NTLM or SHA1 format) has been leaked (HIBP passwords list v8)
Stars: ✭ 52 (+79.31%)
Mutual labels:  sha1
hash-checker
Fast and simple application that allows you to generate and compare hashes from files and text
Stars: ✭ 72 (+148.28%)
Mutual labels:  sha1
Rufus
The Reliable USB Formatting Utility
Stars: ✭ 16,917 (+58234.48%)
Mutual labels:  sha1
hmac.nim
HMAC-SHA1 and HMAC-MD5 hashing in Nim
Stars: ✭ 13 (-55.17%)
Mutual labels:  sha1
Mysql Unsha1
Authenticate against a MySQL server without knowing the cleartext password
Stars: ✭ 191 (+558.62%)
Mutual labels:  sha1
angular-crypto
angular-crypto provides standard and secure cryptographic algorithms for Angular.js with support for: MD5, SHA-1, SHA-256, RC4, Rabbit, AES, DES, PBKDF2, HMAC, OFB, CFB, CTR, CBC, Base64
Stars: ✭ 30 (+3.45%)
Mutual labels:  sha1
font-v
Font version string reporting and modification library + executable tool
Stars: ✭ 15 (-48.28%)
Mutual labels:  sha1
hash-wasm
Lightning fast hash functions using hand-tuned WebAssembly binaries
Stars: ✭ 382 (+1217.24%)
Mutual labels:  sha1
SHA.jl
A performant, 100% native-julia SHA1, SHA2, and SHA3 implementation
Stars: ✭ 35 (+20.69%)
Mutual labels:  sha1

sha1-swift

What?

An SHA-1 hash implementation in Swift

Usage

  1. Include SHA1.swift in your project
  2. Call a public method:
let hash:String = SHA1.hexString(fromFile: filename)

returns Optional("84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1")

let hash:[Int] = SHA1.hash(fromFile: filename)

returns Optional([2845392438, 1191608682, 3124634993, 2018558572, 2630932637])

let hash = SHA1.hexString(from: "abc")

returns Optional("A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D")

let hash = SHA1.hexString(from: data)

returns Optional("A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D")

Implementation details

  • Implemented as a struct with static methods in order to avoid garbage like
let my_sha1_calculator=SHA1()
my_sha1_calculator.hashFromFile(myfile)
  • Since Swift lacks bignums, the hash digest is returned as either a hexadecimal string or as an array of five ints.

Resources

Check out as well

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].