Add a password hash provider to handle Sha512 hashed salted Whirlpool passwords inside Keycloak.
./gradlew assemble -Pdependency.keycloak.version=${KEYCLOAK_VERSION}docker build \
--build-arg keycloak_version=${KEYCLOAK_VERSION} \
-t d64ev/keycloak-sha512whirlpool \
.docker-compose up -dcurl -L https://github.com/d64ev/keycloak-sha512whirlpool/releases/download/v${KEYCLOAK_SHA512WHIRLPOOL_VERSION}/keycloak-sha512whirlpool-${KEYCLOAK_SHA512WHIRLPOOL_VERSION}.jar > ${KEYCLOAK_HOME}/providers/keycloak-sha512whirlpool-${KEYCLOAK_SHA512WHIRLPOOL_VERSION}.jarYou need to restart Keycloak.
curl -L https://github.com/d64ev/keycloak-sha512whirlpool/releases/download/v${KEYCLOAK_SHA512WHIRLPOOL_VERSION}/keycloak-sha512whirlpool-${KEYCLOAK_SHA512WHIRLPOOL_VERSION}.jar > ${KEYCLOAK_HOME}/standalone/deployments/keycloak-sha512whirlpool-${KEYCLOAK_SHA512WHIRLPOOL_VERSION}.jar
>>>>>>> Stashed changesYou need to restart Keycloak.
docker run \
-e KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN} \
-e KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD} \
-e KC_HOSTNAME=${KC_HOSTNAME} \
d64ev/keycloak-sha512whirlpool \
startThe image is based on Keycloak official one.
Go to Authentication / Policies / Password policy and add hashing algorithm policy with value sha512whirlpool.
To test if installation works, create new user and set its credentials.
This project is based on keycloak-bcrypt by Leroy Guillaume. Thanks for the great work!