Storing encrypted username/password for authentication on remote website without OAuth

Denault

I'm building an web application that lets a user enter their credentials for Website-A, and granting my application permission to log in on their behalf. Website-A does not have an API, it does not support OAuth, etc. OAuth is not an option, and it appears most of the other questions based around this recommend OAuth.

Is the best way to do this to encrypt their passwords using any one of the popular encryption algorithms, store the key somewhere safe, and call it good? Their accounts will theoretically be read-only.

The stack uses PHP/MySQL but we're running Node.js with Request and Cheerio to handle the authentication, in some extreme cases we're actually using PhantomJS to render the site (when they are ajax heavy).

Thanks!

Jonathan

It's no surprise that AES CBC with strong padding is the best bet. You'll find a longer discussion here: What encryption algorithm is best for encrypting cookies?

Heck, you could even use the MySql built-in AES_ENCRYPT.

It's all about your key safety.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

OAuth Authorization vs Authentication

From Dev

Storing/Tracking user activity on a website

From Dev

Securely storing credentials that can't be encrypted

From Dev

Django Remote Authentication without redirecting

From Dev

Storing encrypted value in AndroidManifest

From Dev

Storing OpenPGP Keys and Encrypted Data in a Database

From Dev

Automate the oauth authentication without browser in cron utility

From Dev

how to vote ONCE on website without authentication

From Dev

Storing and reading encrypted strings from file in Python

From Dev

OAuth 2.0 authentication in RestSharp

From Dev

Authentication using Google OAuth2 from MVC5 Website Failing (GetExternalLoginInfo always null)

From Dev

Facebook OAuth 2.0 authentication without using ASP.NET

From Dev

Storing and validating encrypted password for login in Pyramid

From Dev

(GitHub) API OAuth authentication for not-a-website applications?

From Dev

Oauth service for LDAP authentication

From Dev

LUKS storing keyfile in encrypted usb drive

From Dev

LUKS storing keyfile in encrypted usb drive

From Dev

Storing OpenPGP Keys and Encrypted Data in a Database

From Dev

dm-crypt+luks: Can I have a separate header without storing it on the luks encrypted device?

From Dev

Ubuntu: encrypted remote desktop server?

From Dev

Storing/Retrieving user data without database when using OWIN cookie authentication

From Dev

check if file exist on remote website without knowing extension

From Dev

Use authentication against encrypted password

From Dev

how to vote ONCE on website without authentication

From Dev

Sync with remote encrypted storage

From Dev

Authentication with OAuth and JWT but without OpenID Connect

From Dev

Authentication using Google OAuth2 from MVC5 Website Failing (GetExternalLoginInfo always null)

From Dev

Facebook OAuth 2.0 authentication without using ASP.NET

From Dev

Storing phone number in user info/user profile without authentication in Firebase

Related Related

  1. 1

    OAuth Authorization vs Authentication

  2. 2

    Storing/Tracking user activity on a website

  3. 3

    Securely storing credentials that can't be encrypted

  4. 4

    Django Remote Authentication without redirecting

  5. 5

    Storing encrypted value in AndroidManifest

  6. 6

    Storing OpenPGP Keys and Encrypted Data in a Database

  7. 7

    Automate the oauth authentication without browser in cron utility

  8. 8

    how to vote ONCE on website without authentication

  9. 9

    Storing and reading encrypted strings from file in Python

  10. 10

    OAuth 2.0 authentication in RestSharp

  11. 11

    Authentication using Google OAuth2 from MVC5 Website Failing (GetExternalLoginInfo always null)

  12. 12

    Facebook OAuth 2.0 authentication without using ASP.NET

  13. 13

    Storing and validating encrypted password for login in Pyramid

  14. 14

    (GitHub) API OAuth authentication for not-a-website applications?

  15. 15

    Oauth service for LDAP authentication

  16. 16

    LUKS storing keyfile in encrypted usb drive

  17. 17

    LUKS storing keyfile in encrypted usb drive

  18. 18

    Storing OpenPGP Keys and Encrypted Data in a Database

  19. 19

    dm-crypt+luks: Can I have a separate header without storing it on the luks encrypted device?

  20. 20

    Ubuntu: encrypted remote desktop server?

  21. 21

    Storing/Retrieving user data without database when using OWIN cookie authentication

  22. 22

    check if file exist on remote website without knowing extension

  23. 23

    Use authentication against encrypted password

  24. 24

    how to vote ONCE on website without authentication

  25. 25

    Sync with remote encrypted storage

  26. 26

    Authentication with OAuth and JWT but without OpenID Connect

  27. 27

    Authentication using Google OAuth2 from MVC5 Website Failing (GetExternalLoginInfo always null)

  28. 28

    Facebook OAuth 2.0 authentication without using ASP.NET

  29. 29

    Storing phone number in user info/user profile without authentication in Firebase

HotTag

Archive