in Education by
Traditionalist argue that stored procedures provide better security than if you use a Object Relational Mapping (ORM) framework such as NHibernate. To counter that argument what are some approaches that can be used with NHibernate to ensure that proper security is in place (for example, preventing sql injection, etc.)? (Please provide only one approach per answer) JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Protect your connection strings. As of .NET 2.0 and NHibernate 1.2, it is easy to use encrypted connection strings (and other application settings) in your config files. Store your connection string in the block, then use the NHibernate connection.connection_string_name property instead of connection.connection_string. If you're running a web site and not a Windows app, you can use the aspnet_regiis command line tool to encrypt the block, while leaving the rest of your NHibernate settings in plaintext for easy editing. Another strategy is to use Integrated Authentication for your database connection, if your database platform supports it. That way, you're (hopefully) not storing credentials in plaintext in your config file.

Related questions

0 votes
    What Are The Security Best Practices For Amazon Ec2 ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    What are some best practices you should follow while using ServiceNow?...
asked May 25, 2021 in Technology by JackTerrance
0 votes
    What are some of the best practices in test automation?...
asked Jul 10, 2021 in Technology by JackTerrance
0 votes
    What Are The Best Practices For Amazon Ec2 ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    What are the best practices to be followed while designing a secure RESTful web service?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the best practices for caching in RESTful?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the best practices to create a standard URI for a web service?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the best practices to design a resource representation?...
asked Nov 7, 2020 in Technology by JackTerrance
+1 vote
    Enlist some best practices that are followed to make API testing successful?...
asked Oct 15, 2020 in Technology by JackTerrance
0 votes
    I've worked a lot with Pentaho PDI so some obvious things jump out at me. I'll call Connection ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 14, 2022 in Education by JackTerrance
0 votes
    Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    This is a bit of an odd question, but it has been bothering me for a few months now. I have ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Mention a few design and development best practices for Informatica....
asked Mar 27, 2021 in Technology by JackTerrance
0 votes
    Which of the following is the ideology to integrate security practices into the DevOps system? (1)Secure development (2)SecOps (3)DevOps (4)DevSecOps...
asked May 18, 2021 in Technology by JackTerrance
...