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

  • Home
  • SEARCH
  • 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 8221373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:53:52+00:00 2026-06-07T13:53:52+00:00

as you guys know that the Hardcoded coding in exe file can easily be

  • 0

as you guys know that the Hardcoded coding in exe file can easily be seen through some Softwares (e.g. code reflector), I want to know whether how can I Hide my connection string having information of sql server username and password to connect to database in windows forms application from being seen through any code reflector so that any one else Except me may never be able to use my application without my permission.

  • 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-07T13:53:55+00:00Added an answer on June 7, 2026 at 1:53 pm

    As commented, you are better off using Integrated Security, however if you are targeting a SQL Server with say Mixed Mode Authentication you could use the Data Protection API to encrypt the connection string in the app.config. Here is a great article on the topic:

    Protecting application secrets, such as database connection strings
    and passwords, requires careful consideration of a number of pertinent
    factors such as how sensitive the data is, who could gain access to
    it, how to balance security, performance, and maintainability, and so
    forth. This article explains the fundamentals of data protection and
    compares a variety of techniques that can be used to protect
    application settings. The author discusses what to avoid, such as
    hiding keys in source code and the use of Local Security Authority. In
    addition, he presents some effective solutions such as the Data
    Protection API.

    Safeguard Database Connection Strings and Other Sensitive Settings in Your Code

    How To: Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET)

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

Sidebar

Related Questions

Sorry guys, I'm a noob. I know that some languages support type casting, but
I was wondering, do you guys know of a cmake file for portaudio that
How do you guys organise your javascript code? I know that it is good
Do you guys know of any algorithms that can be used to compute difference
do you guys know how can i determine from what file was a function
Do you guys know a python script that can generate openVPN certificates ? I
Like a lot of you guys know that the javascript functions or methods can
Hi guys i am going to make a android game. i wanna know that
You guys know in Pastebin how according to the selected language, the code is
I know that you guys may feel that this is repetitive question. But I'm

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.