where should i perform coding to encrypt password?? controller or view
<div class="form-group">
@Html.LabelFor(model => model.Password, htmlAttributes:new{@class="control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Password,
new { htmlAttributes = new { @class = "form-control", @type = "password" } })
</div>
</div>