Authentication
OOP authentication protects the password hash through privacy and method encapsulation. The OOP authentication example stores username and password hash state in a User class. The FP authentication example expresses password hashing and ch…
1 sources - 4 claims
OOP authentication protects the password hash through privacy and method encapsulation. The OOP authentication example stores username and password hash state in a User class. The FP authentication example expresses password hashing and checking as standalone composable functions. Adding multiple authentication strategies to the OOP example requires modifying the existing class.