Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:16:20+00:00 2026-06-15T12:16:20+00:00

I doing a WPF project using C# and LinQ. My application require user to

  • 0

I doing a WPF project using C# and LinQ. My application require user to login before they able to access the application. So, what i am doing is i have all the members data in mySQL server(as shown as the image below). User able to login into the application only if the “Status” is 1. So, may i know what kind method i can use for all the authentication and encryption for the login procedure? Thanks.

p/s: i am a newbie

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:16:22+00:00Added an answer on June 15, 2026 at 12:16 pm

    Just do something like this:

       var username = txtUserName.Text;
       var password = txtPassword.Text;// there is available encryption on the web that you can use on. and your code will be like var password=enc.EncryptToString(txtPassword.Text);
       var isValidUser = from user on UserTable
                         where user.UserName == txtUserName.Text && user.Password == password && user.Status == 1
                         select user;  
       if(isValiduser.Count() > 0)
       {
         //OK you can log on
       }
       else
       {
         //user credential is invalid
       }       
    

    For your encryption see the link below for:

    Simple 2 way encryption for C#

    Best Regards

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application using service references to a WCF service. When doing
I'm doing WPF(MVVM) project using mvvm-light libraries, and have such problem: I want to
I have a WPF Linq-to-SQL project which I have been developing using MS Visual
I have just changed my WPF application from .Net3.5 to .Net4. Doing this caused
I have done automated UI testing before on a major WPF project and it
I have written a WPF Application with a datalayer using Entity Framework 4 (EF4,
ALl: Hopefully someone is using Awesomium in WPF as I am doing now. I
Doing the below will reproduce my problem: New WPF Project Add ListView Name the
After doing a project with WPF and getting very much attached to it's excellent
I have found out that I am doing WPF wrong and frustratingly must overhaul

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.