Hack proof your Javascript using javascript Obfuscation in ASP.NET applications

Introduction:

This article is the Part-5 Article of my series Hack Proof your asp.net and asp.net mvc applications.
In this article i will describe how to obfuscate your JavaScript code (Your written business logic in JavaScript or those  JavaScript libraries you don't want to expose to others) in asp.net application with visual studio.

Background :

You can read previous article of this series from below links :

    1. Secure your ASP.NET applications from SQL Injection
    2. Secure your ASP.NET applications from XSS Attack
    3. Secure your ASP.NET applications from CSRF Attack
    4. Secure your ASP.NET applications from Sensitive Data Exposure and Information Leakage

    Posted in , , | Leave a comment

    Application Initialization in IIS 7.5 and IIS 8

    Why we need Application initialization ?

    On first HTTP requests asp.net applications both asp.net web forms and asp.net mvc application requires initialization tasks and "warm up" tasks (Startup processing , generating contents) etc.

    Application initialization proactively loads and initialize all the dependencies like database connection , compilation of asp.net code and loading of assemblies etc...

    Benefits of Application initialization :

    • its decreases the first response time by preloading the application
    • Can set a static page to increase the user experience while application is initializing
    • Provides overlapped process recycling 

    Posted in , , , | Leave a comment

    ASP.NET Precompilation for Deployment

    Benefits of Precompilation in ASP.NET:

    • Initial response of application will be faster for users, because code and files will not have to be compiled at the first time any user requested.
    • We can ensure error free application at compile time
    • From security concern people who have access to production server cannot see the source code and cannot make the changes(if you have chose the option of not updatable at the time of publish).
    • Large websites must use this precompilation.

    Posted in , , | Leave a comment

    Calculate the Execution time of a Function in C# , Razor View, Aspx View

    My previous article was on the how to do the performance profiling with Visual Studio. Using Visual Studio analyze tool we can profile a function , dynamic link library, project and solution.
    Link of  - Performance Profiling with Visual Studio

    Requirements :

    1. However if we want to see execution for a particular function , you definitely don't want to run the profiler for that.Although profiler is more sophisticated way.
    2. if you have any loop on your razor / aspx view of asp.net application ,through profile it wolld be difficult to calculate the time of that loop.

    Posted in , , | Leave a comment

    Performance Profiling in Visual Studio

    Hi Guys after a long time i am writing this article ( Feeling very poor [GARIB] ), Jokes apart In this article i will describe how to do the performance profiling using Visual Studio.
    There are many third party tools which do the Code Profiling , Memory profiling and Performance Profiling for us these are paid tools but they are good as well :
    • ANTS
    • Just Trace
    • Your KIT 
    • .NET Memory Profiler
    • Eqatec
    • Slim Tune Profiler
    • Dot Trace

    As i said am feeling poor, i will describe -"How to do Performance Profiling using Visual Studio inbuilt performance analysis tools ?"

    Posted in , , | Leave a comment

    IE-10 right align text input issue

    Remove Clear Icon - "X" from input fields of Internet Explorer

    Recently i added style text-align to right of an input :
    <input type="text" style="text-align: right;">
    

    Issue :
    But when someone types number in that then the last part of the text inside the textbox isn't displayed completely in Internet Explorer 10 as soon as the textbox loses focus.It because of its "Clear Icon - x".
    Even they have fixed this in their latest version of Internet Explorere - 11.

    Posted in | Leave a comment
    Powered by Blogger.

    Swedish Greys - a WordPress theme from Nordic Themepark . Managed by Sarvesh Kushwaha .