Inklings-io / selfauth

self-hosted auth_endpoint using simple login mechanism
Creative Commons Zero v1.0 Universal
81 stars 15 forks source link

Add a simple hash_equals polyfill. #24

Closed Zegnat closed 7 years ago

Zegnat commented 7 years ago

Bite size PR this time!

Fixes #17.

Note that there might still be some concerns, e.g. when strlen() functionality has been overwritten. More complete libraries like password_compat and random_compat define their own strlen() because of this. But I feel like nested polyfills are way out of scope for Selfauth. Better to educate people and get them to update PHP.

Should probably write a security section instead of the current warnings section…