...

/

Using Libraries

Using Libraries

This lesson discusses how and when to use libraries and their syntax in Ruby.

Our Person class does not define an attribute accessor method for its password, and thus, others cannot ask for and retrieve it.

However, our person object could freely give them an encrypted version of it.

Actually, this is pretty similar to how authentication often works in real web applications:

🕵🏻 Applications do not store your actual password in plain text (hopefully!) That way if, for some reason, they get hacked, attackers wouldn’t have your actual password. Instead, they store an encrypted version of the password.
...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy