I wanted to make a website, but with a private section. The private section has to be accessed with a password. If I used a simple if statement to do so, will it be safe on the server side? Example:
Protected Sub AccessPrivate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles AccessPrivate.Click If InputBox("Enter password to unlock site:", "Password") = "password" Then MsgBox("Correct!") Else MsgBox("Incorrect!") End If End Sub
Would that be safe or would someone be able to view that source code?