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 769995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:25:36+00:00 2026-05-14T18:25:36+00:00

Is it safe to store information such as usernames and passwords within comments in

  • 0

Is it safe to store information such as usernames and passwords within comments in your source code? I am not worried about some getting access to my source but I am concerned in regards to someone decompiling my compiled silverlight XAP file. Is anybody 100% sure if the compiler strips off commented code. I would assume it does but I want to be sure.

Thanks!

  • 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-05-14T18:25:37+00:00Added an answer on May 14, 2026 at 6:25 pm

    Are comments compiled in to C# Silverlight Applications?

    No.

    I am not worried about some getting access to my source

    You should be.

    Is it safe to store information such as usernames and passwords within comments in your source code?

    Safe against what attack?

    It is not safe against the attack of “a disgruntled employee copies the source code to their USB keychain and takes it home with them, so that they know your user names and passwords after you fire them”, for example.

    Nor is it safe in the scenario “you accidentally used some component that has a viral open source license and you are sued and legally required to release your source code to the public as-is, and you are now legally required to display your user names and passwords to the world”.

    Nor is it safe in the scenario “you decide to open-source your code and forget that somewhere in that hundred-thousand lines of code, there’s a user name and password sitting right there.”

    Nor is it safe in the scenario “we gave a client a virtual machine with a trial version of the software but we forgot that a developer had been debugging the trial version on that virtual machine and she copied a bunch of the source code to the VM”.

    And so on.

    It is a very, very bad idea to store user names and passwords in comments of source code. Too many people have access to source code. Save this information on a piece of paper in a locked filing cabinet behind a door that says “beware of the leopard”.

    And remember: always state the attack when you ask “is it safe?” Safety is always in the context of a particular attack.

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

Sidebar

Related Questions

Are OpenID Identity URLs considered sensitive information? For example, is it safe to store
I'm writing an administrative panel and I want to store some of the information
Is it safe to store user inputted passwords in session variables which are used
Where is servlet HttpSession stored? Is it safe to store sensitive information in HttpSession
In Visual Source Safe 6.0, you could reset a working folder by setting it
I have a project in which i use JDBC with MySQL to store some
I want to store per-thread data in an ADO.NET Data Service. Is it safe
Is it safe to store sensitive data inside a session variable? Or can it
In an answer to Is it safe to store objects of a class which
I have some numbers stored in an NSString. Is it safe to extract them

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.