Using Defensive Programming Technique to Increase Software Security in C# Language

Message:
Abstract:
Due to the importance of computer software security in military organizations, Programmers and designers of these systems are required to comply with security issues in programming. This article focuses on the coding level in the software development cycle. Defensive goals are to prevent accidents caused by improper coding. These events include software crash, access to source code, excessive use of hardware resources and increasing the required time to update program. Then, using named arguments in the function call is introduced to help increase readability and thus reduce time to update the program. To manage runtime errors, the fail fast method for exceptions and their appropriate management are provided. These actions cause the increased program security and non-crash software for improper coding, and also increase the number of functions and classes, and therefore increase the line number of the code. This issue may be the cause for concern about the increase in the runtime and cost of the process. This paper suggests implementing a program in both defense and non-defense modes. The result shows the average life of thread in defensive mode is 8.23 seconds while the amount for non-defense is 8.80 seconds. On the one hand, the percentages of CPU usage on defense and non-defense modes are 54.32 and 54.70, respectively, and on the other hand, for the processing cost of users are 24.23 and 24.41 percent, respectively. These numbers indicate the same processing cost and runtime of the program in both defense and nondefensive modes.
Language:
Persian
Published:
Passive Defense Quarterly, Volume:8 Issue: 3, 2017
Page:
23
magiran.com/p1723294  
دانلود و مطالعه متن این مقاله با یکی از روشهای زیر امکان پذیر است:
اشتراک شخصی
با عضویت و پرداخت آنلاین حق اشتراک یک‌ساله به مبلغ 1,390,000ريال می‌توانید 70 عنوان مطلب دانلود کنید!
اشتراک سازمانی
به کتابخانه دانشگاه یا محل کار خود پیشنهاد کنید تا اشتراک سازمانی این پایگاه را برای دسترسی نامحدود همه کاربران به متن مطالب تهیه نمایند!
توجه!
  • حق عضویت دریافتی صرف حمایت از نشریات عضو و نگهداری، تکمیل و توسعه مگیران می‌شود.
  • پرداخت حق اشتراک و دانلود مقالات اجازه بازنشر آن در سایر رسانه‌های چاپی و دیجیتال را به کاربر نمی‌دهد.
In order to view content subscription is required

Personal subscription
Subscribe magiran.com for 70 € euros via PayPal and download 70 articles during a year.
Organization subscription
Please contact us to subscribe your university or library for unlimited access!