database - How to store someone else's password? -


this question has answer here:

there's general consensus on how store passwords if have validate them (i.e. hash + salt (+ pepper)). however, building application logs users in service x actions a, b, c repeatedly them.

how 1 store passwords in case? if encrypted, there has 1-to-1 conversion if 1 wants log them service x.

there no safe way store passwords can decrypted plain text form.

the oauth2 protocol offers solution use case.

it asks user authenticate , issues application access token (and potentially refresh token) allows application access or act upon behalf of user.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -