Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.35 KB

readme.md

File metadata and controls

45 lines (30 loc) · 1.35 KB

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