doubts with passwords

0

I'm creating an application using MVC. On the server side, I'm using C # / Asp.net MVC, on the client side I'm using html / angular.

On the server I have a method called Authenticate, which receives the email and the password, to search the base and check if the user is registered, works perfectly.

On the client side I have this method that calls the server Authenticate method, I pass the email and the password:

$scope.pessoa = {};

        $scope.getPessoa = function (pemai, psenha) {
            var url = "http://localhost:23714/Pessoa/getBydesc?json=" + pemai;
            $http.get(url, pemai)
                .success(function (data) {
                    $scope.pessoa = data;
                })
                .error(function (error) {
                    alert("Erro");
                });

        };

My question is, how to pass this encrypted password? What is the most appropriate and secure way to handle the password in this scenario?

    
asked by anonymous 28.02.2016 / 16:38

0 answers