angular-sha256 SHA256 encryption module for angularJS How To: Add module angular-encryption in your app Add factory sha256 in your controller $scope.password = sha256.convertToSHA256($scope.password);