版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、Web Programming Library Design in C for MIS BoQu School of Mathematics and Information Technology Nanjing Xiaozhuang College Nanjing, China Mr,QuBo@126,com Abstract-This paper describes the technical details of the de
2、sign and implementation of a Web programming library for Web based MIS, including Web page authoring functions, secure login functions, and utility functions, all integrated into one library. The library is programmed in
3、 C on Linux platform with GNU tool chain. A demo example is provided to show the usage and effect of the library. It is proven by the fact that C is an appropriate programming language to develop Web based MIS which can
4、be of secure, reliable and stable. Keywords-Web programming library; Web page authoring; MIS; secure login; CGI L INTRODUCTION With the constant development of computer information technology, management information sy
5、stems have been popularly used by all walks of life on different topics. The basic architecture of MIS is CIS (Client/Server) mode. Originally, some dedicated client programs are developed to carry out the dedicated t
6、asks by communicating with the server, Due to the rapid development of the computer networks and World Wide Web, more and more MIS's take Web as the communication system and commonly used standard browsers as the
7、ir client. That is just the well-known B/S (Browser/Server) mode [1]. In order to meet the requirements of developing Web based MIS, some interpreted Web authoring languages, such as ASP, PHP, JSP, etc., emerge as the
8、 times require. The common characteristics of them are interpretation, for example, ASP and PHP is interpreted by dedicated Web server while JSP is compiled into byte code which then running on Java Virtual Machine (
9、NM). Although the developing efficiency can be increased, there are some drawbacks in using them. ? The processing speed by interpreted language is obviously slower than by compiled ones, no matter in theory or pract
10、ice. Although the server programs are interpreted directly by the Web server, after all, the running instructions are source codes rather than binary object codes. That is self-evident. ? The running code for interpr
11、eted language must be the source code while for compiled language be the binary object code. That means there exist latent dangers for the MIS programs designed in these interpreted languages, for example, the key co
12、des for verification, security protection, and sensitive data, etc. can be seen 978-1-4673-2008-5/12/$31.00 ©2012 IEEE 733 Zhaozhi Wu School of Mathematics and Information Technology Nanjing Xiaozhuang College Na
13、njing, China Wzz5958@126.com and misused by some malicious users smce the instructions are all source codes. ? It is difficult to generate merchandised software product by using interpreted languages as well as self&
14、#173; protect the intellectual property right of the software. As we all know, C is a powerful compiling system programming language [4]. Almost all the Operating Systems, DBMS, and majority of system software are desi
15、gned in C. Lots of successful application software designed in C prove that C is also an appropriate and powerful programming language for developing application systems such as MIS. In fact, by elaborately selecting
16、commonly used functions and programming them to form a library, the efficient to design a MIS in C can be also improved evidently. The Web programming library mentioned in this paper is just a good example on the fiel
17、d. The advantage of the library is described as the following. ? Web page authoring functions. Web page authoring is the basic requirement for designing a Web based MIS, therefore such kinds of functions will be undo
18、ubtedly convenient to programmers to design. This part is the main components of the library including setting page style, displaying page header, displaying page top, displaying page foot, etc. ? Secure login funct
19、ions. Login system is an essential part for nowadays MIS, and the security of the system must be ensured. This group of functions will provide some useful functions such as CAPTCHA function, login function, cookie pr
20、ocess function, mail function, password modifying function, and password getting back function, etc., to simplify the design of a secure login system. ? Utility functions. Some commonly used utilities such as access
21、 counter, mini calendar, encrypting and encoding functions, etc. are provided, which will give some assistants to programmers in development. ? All design in C. By using C as the developing language, only the binary
22、object codes are needed when the MIS running. That will undoubtedly increase the security, reliability, stability, and the running efficiency greatly. This paper describes the technical details of design and implement
23、ation of the Web programming library in C for Web system. which generally consists of three components, a login form page, a CAPTCHA [3, 6] image, and the corresponding cookie mechanism. A secure login system for Web b
24、ased MIS is designed in C by the author of this paper, and confined to the length of the thesis, the design of it and the corresponding mail functions and cookie process functions will be described in details in othe
25、r papers therefore not be mentioned further. Besides these, some other commonly used functions are also needed for secure login, mainly including mail agency configuration, password modification, mailbox configuration,
26、 and password getting back, etc. A. Mail Agency Configuration To transmit emails, an SMTP server is required. Generally, there are two ways to implement an SMTP server, that is, by running such a server at the same h
27、ost as the MIS in, or by invoking a mail agency. The latter is the way popularly used in various kinds of MIS. To invoke a mail agency, four essential factors are required, i.e. the usemame and password of the accoun
28、t for that agency, the mailbox name of that account and the domain name of the agency. To convenient for the configuration, function web _ mailagencyO is designed. Fig. 5 shows the page to configure a mail agency wi
29、th the four factors. Of course, this function should only be used by the admin of the MIS. Config Mail Agency Password: I ???????? [my mail agency password mymail SMTP,126.com my mailagency@126,com [ Submit I ? Figur
30、e 5. FOnTI of configuring mail agency Function web mailagencyO accepts the four factors by the page form shown In Fig. 5, and then store them in the server. In order to protect the information from being stolen, the
31、 information is encrypted first with RC4 algorithm, and then, encoded with Base64 algorithm to convenient for storing. Whenever a message is needed to be mailed, the mail agency information is read in, and then, encod
32、ed and decrypted into originals. B. ModifYing Password The purpose of the function is providing a page form for users to modify the password. Obviously there are three input form control are needed, in which one for
33、original and the other two for the new password and the repeated one respectively. The form page of it is not a difficult task but the process of the password is an important issue. Some systems store the password as
34、plaintext, and compare it with the input data from the user. Although this is the simplest way to verify the password but also a danger one since the plaintext of the password is stored which can be seen by malicious
35、 administrators. A good way to resolve the problem is to store the password in an encrypted form and compare it with the encrypted form of password. There are various encryption methods and one of commonly used is by
36、MD5, the corresponding system function of which is cryptO. 735 C. Configuring Mailbox Configuring mailbox is also a commonly used function, for example, when modifying user's password, getting back password, anno
37、uncing messages by admin, etc. Function web mailboxO is designed to accomplish configuration. It accepts the mailbox of the user by using the page form and store the mailbox if the password provided by user is correct
38、. D. Password Getting Back Function There are two factors for password getting back, usemame and the user's mailbox. The form page for it is simply just consisting of an input form control to enter the usemame. The
39、 mailbox of the user must be preset by user. Fig. 6 shows the page form generated by the function. Try a new code Getback Password Username: 1 1 verificationL C - Od :- er l === =;' 1 Login Figurc 6. Form of get
40、ting back password It is obviously similar to the form of login except that there is no password required therefore, in fact, it is accomplished by the same function as for login, web_userloginO. With the usemame, the
41、 corresponding mailbox of the user can be obtained and a new password is randomly generated. The new password is sent to the user's mailbox as the plaintext, and at same time, is encrypted and then stored. The pur
42、pose of the CAPTCHA in the form is avoiding malicious users to do the function automatically which may generate flood of emails. IV. UTILITY FUN CTIONS Some other commonly used utility functions are also needed in th
43、e designing of Web based MIS, for example, access counter, mini calendar, RC4 encryption, and Base64 encoding and decoding, etc. A. Access Counter There are two types of access counter, character based and image base
44、d. The latter is selected for the counter function in the library. In order to simplify the structure of the CGI file, the dot-matrix of the digits is used to form the counter image and the dot-matrix information is c
45、oded directly into the source code. The bitmap [7] is selected as the counter image format. The real effect of the access counter implement for the library is shown as in the Fig. 2 mentioned above. It is worthy noted
46、 that an access counter should not be refreshable, that is, only when a new session occurs can the counter increase. This can be implemented by using a cookie. B. Mini calendar There are wide varieties of different fo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 基于C語言的MIS程序庫設(shè)計(jì)外文翻譯(英文).pdf
- 基于C語言的MIS程序庫設(shè)計(jì)外文翻譯(英文).pdf
- 基于c語言的mis程序庫設(shè)計(jì)外文翻譯
- 基于c語言的mis程序庫設(shè)計(jì)外文翻譯
- 基于c語言的mis程序庫設(shè)計(jì)外文翻譯(譯文)
- 基于C語言的MIS程序庫設(shè)計(jì)外文翻譯(譯文).doc
- 基于C語言的MIS程序庫設(shè)計(jì)外文翻譯(譯文).doc
- 外文翻譯--平面機(jī)械程序庫 AMESim仿真軟件 英文.pdf
- 外文翻譯--平面機(jī)械程序庫 AMESim仿真軟件 英文.pdf
- 外文翻譯--平面機(jī)械程序庫 AMESim仿真軟件 中文.doc
- 外文翻譯--平面機(jī)械程序庫 AMESim仿真軟件 中文.doc
- 回歸分析程序庫設(shè)計(jì)與實(shí)現(xiàn).pdf
- 數(shù)據(jù)庫和c語言外文翻譯
- IPTAS系統(tǒng)公共程序庫的設(shè)計(jì)與實(shí)現(xiàn).pdf
- 外文翻譯---visual c++程序設(shè)計(jì)
- visual c++程序設(shè)計(jì)外文翻譯
- 外文翻譯---visual c++程序設(shè)計(jì)
- c語言課程設(shè)計(jì)--c語言投票程序
- 數(shù)控銑床加工模型機(jī)程序庫畢業(yè)設(shè)計(jì)
- 《c語言程序設(shè)計(jì)》
評論
0/150
提交評論