Passing a password to a web service and storing it

Patryk Golebiowski

What is the proper way of passing a password to a web service via restful api (when a user is registering or just logging in)? How should I store it?

From what I was thought, I should only store hashes, for example MD5. But from what I can read in the Internet it appears to be rather easy to just look up a hash in a "hash rainbow table" - so storing a hash would be equal to storing a clear text. How to do it properly?

Info:

  • .NET, C#
  • PostgreSQL
MvdD

The way to pass username and password to a REST service is to use the basic authentication scheme over HTTPS. HTTPS should protect your password from being stolen in transit.

As I explain in my answer here, it's not a good idea to use basic authentication for your services. You would be better of using a Security Token Service (STS) and use bearer authentication

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Passing Username and Password to Web Service

From Dev

How to get rid of passing "username and password" in web service call to Pentaho transformation?

From Dev

How can I use Windows authentication in lieu of storing / passing a password?

From Dev

How can I use Windows authentication in lieu of storing / passing a password?

From Dev

Web Service Passing parameter Class

From Dev

Passing date to ASMX web service

From Dev

Storing a username & password for a REST API in a web app session

From Dev

Passing NTLM credentials to remote web service

From Dev

Trouble passing datetime parameter to web service, in GET

From Dev

JAVA: Restfull web service not passing parameter correctly

From Dev

Passing XML to Web Service via http POST

From Dev

Error passing in parameters Android Web Service login?

From Dev

Passing a FedAuth cookie to Web Service Calls

From Dev

Eclipse Web Service - No response when passing Parameters

From Dev

JAVA: Restfull web service not passing parameter correctly

From Dev

Why is passing a dataset to a web service method not good?

From Dev

How to access a password protected web service in osb?

From Dev

How to create Password Digest for use with Web Service?

From Dev

Passing and Storing Strings

From Dev

SQL Server - Storing Password

From Dev

Storing username and password into a dictionary?

From Dev

Storing password securely nodemailer

From Dev

Storing password hashes

From Dev

SQL Server - Storing Password

From Dev

Storing username and password into a dictionary?

From Dev

Storing username and password in Git

From Dev

Storing password hashes

From Dev

Safely storing a password locally

From Dev

Storing user's password for web application in client-side JavaScript - is this secure?

Related Related

  1. 1

    Passing Username and Password to Web Service

  2. 2

    How to get rid of passing "username and password" in web service call to Pentaho transformation?

  3. 3

    How can I use Windows authentication in lieu of storing / passing a password?

  4. 4

    How can I use Windows authentication in lieu of storing / passing a password?

  5. 5

    Web Service Passing parameter Class

  6. 6

    Passing date to ASMX web service

  7. 7

    Storing a username & password for a REST API in a web app session

  8. 8

    Passing NTLM credentials to remote web service

  9. 9

    Trouble passing datetime parameter to web service, in GET

  10. 10

    JAVA: Restfull web service not passing parameter correctly

  11. 11

    Passing XML to Web Service via http POST

  12. 12

    Error passing in parameters Android Web Service login?

  13. 13

    Passing a FedAuth cookie to Web Service Calls

  14. 14

    Eclipse Web Service - No response when passing Parameters

  15. 15

    JAVA: Restfull web service not passing parameter correctly

  16. 16

    Why is passing a dataset to a web service method not good?

  17. 17

    How to access a password protected web service in osb?

  18. 18

    How to create Password Digest for use with Web Service?

  19. 19

    Passing and Storing Strings

  20. 20

    SQL Server - Storing Password

  21. 21

    Storing username and password into a dictionary?

  22. 22

    Storing password securely nodemailer

  23. 23

    Storing password hashes

  24. 24

    SQL Server - Storing Password

  25. 25

    Storing username and password into a dictionary?

  26. 26

    Storing username and password in Git

  27. 27

    Storing password hashes

  28. 28

    Safely storing a password locally

  29. 29

    Storing user's password for web application in client-side JavaScript - is this secure?

HotTag

Archive