How h-ssiqueira/cryptohash works
CryptoHash is a Quarkus password-hashing service: clients submit a password to encrypt or match, choose an algorithm, and receive a result; clients can also request the supported algorithm list. The controller’s calls into the delegate are shown, but the delegate implementation and algorithm registration are not excerpted, so those relationships are left unverified. The README documents the broader algorithm catalog; grouped strategy nodes preserve that capability without implying individual dispatch paths.
Main entry points: CryptoHashStrategy.java Strategy interface · CryptoHashController.java REST controller · CryptoHashDelegate.java Hash delegate · domain Other algorithms
Components 18
API and contracts
- REST controller
src/main/java/com/hss/cryptohash/controller/CryptoHashController.java - Hash delegate
src/main/java/com/hss/cryptohash/controller/CryptoHashDelegate.java - Algorithm catalog
src/main/java/com/hss/cryptohash/commons/strategy/Algorithm.java - Request and response DTOs
src/main/java/com/hss/cryptohash/commons/dto - Exception handling
src/main/java/com/hss/cryptohash/commons/exception/handler
Hash strategies
- Strategy interface
src/main/java/com/hss/cryptohash/spec/CryptoHashStrategy.java - Other algorithms
src/main/java/com/hss/cryptohash/domain - BLAKE algorithms
src/main/java/com/hss/cryptohash/domain/blake - GOST algorithms
src/main/java/com/hss/cryptohash/domain/gost3411 - MD algorithms
src/main/java/com/hss/cryptohash/domain/md - RIPEMD algorithms
src/main/java/com/hss/cryptohash/domain/ripemd - Password hash algorithms
src/main/java/com/hss/cryptohash/domain/secure - SHA algorithms
src/main/java/com/hss/cryptohash/domain/sha - SHAKE algorithms
src/main/java/com/hss/cryptohash/domain/shake
Configuration and support
- Hash configuration
src/main/java/com/hss/cryptohash/commons/config/ConfigApplicationProperties.java - Byte comparator
src/main/java/com/hss/cryptohash/util/ByteComparator.java
Browser interface
- Browser interface
src/main/resources/META-INF/resources/js
Other components
- Client
Connections 16
- Client → REST controller: submits requests
src/main/java/com/hss/cryptohash/controller/CryptoHashController.java - REST controller → Hash delegate: delegates hashing
src/main/java/com/hss/cryptohash/controller/CryptoHashController.java - REST controller → Algorithm catalog: lists algorithms
src/main/java/com/hss/cryptohash/controller/CryptoHashController.java - REST controller → Request and response DTOs: accepts and returns
src/main/java/com/hss/cryptohash/controller/CryptoHashController.java - Hash delegate → Strategy interface: selects and invokes
- Strategy interface → Other algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/SparkleStrategyImpl.java - Strategy interface → BLAKE algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/blake/Blake2bpStrategyImpl.java - Strategy interface → GOST algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/gost3411/GOST3411_2012_256StrategyImpl.java - Strategy interface → MD algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/md/MD4StrategyImpl.java - Strategy interface → RIPEMD algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/ripemd/RIPEMD128StrategyImpl.java - Strategy interface → Password hash algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/secure/PBKDF2StrategyImpl.java - Strategy interface → SHA algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/sha/SHA512_224StrategyImpl.java - Strategy interface → SHAKE algorithms: implemented by
src/main/java/com/hss/cryptohash/domain/shake/CSHAKEStrategyImpl.java - Password hash algorithms → Hash configuration: reads settings
src/main/java/com/hss/cryptohash/domain/secure/PBKDF2StrategyImpl.java - Other algorithms → Byte comparator: compares hashes
src/main/java/com/hss/cryptohash/domain/SparkleStrategyImpl.java - Browser interface → Client: provides UI