Phate334 / cas-bcrypt-demo

Apereo CAS Authenticate with Hashed Password by BCrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apereo CAS Authenticate with Hashed Password by BCrypt

Run

  • Add cas.example.org to your hosts file:
> echo '127.0.0.1 cas.example.org' >> /etc/hosts
> docker-compose up -d
> docker-compose restart cas

Login

Create hashed password

import bcrypt
hp = bcrypt.hashpw(b'1234', bcrypt.gensalt(prefix=b'2a'))
bcrypt.checkpw(b'1234', hp)

Reference

About

Apereo CAS Authenticate with Hashed Password by BCrypt


Languages

Language:Dockerfile 100.0%