layeh / radius

a Go (golang) RADIUS client and server implementation
https://pkg.go.dev/layeh.com/radius
Mozilla Public License 2.0
571 stars 181 forks source link

use constant time compare for password validation #97

Open ricecake opened 2 years ago

ricecake commented 2 years ago

Use a constant time comparison function to compare password hashes This guards against the possibility of leaking timing information when comparing hashes.

Given the context, it's a small risk but still better to remove issues.