Académique Documents
Professionnel Documents
Culture Documents
SCHEME
A Project Report submitted in the partial fulfillment of the
requirements for the award of the degree of
BACHELOR OF ENGINEERING
IN
COMPUTER
Submitted By
CERTIFICATE
As far as our knowledge is concerned this project has not been submitted for the award of any
degree to this university before or to any other university.
ACKNOWLEDGEMENT
We feel graced to express our deep sense of gratitude to Dr. BASHIR ALAM, Associate
Professor, Department of Computer Engineering, for his precious guidance and
encouragement for the completion of this work. We are thankful to Prof. M.N DOJA, Head,
Department of Computer Engineering for sparing his valuable time, monitoring our work and
patience discussion throughout our project work.
We are thankful to all other teachers and non teaching staff of the Computer
Engineering Department for helping us in successful completion of this project.
CONTENTS
Chapter 1. Introduction
Chapter 4. Implementation
Chapter 5. Results and Discussions
Chapter 6. Conclusion
Chapter 7. Area of Application
BIBLIOGRAPHY ..55
|6
CHAPTER 01
Introduction
The basic principle of the visual cryptography scheme (VCS) was first introduced by Naor
and Shamir. VCS is a kind of secret sharing scheme that focuses on sharing secret images.
The idea of the visual cryptography model proposed in is to split a secret image into two
random shares (printed on transparencies) which separately reveals no information about
the secret image other than the size of the secret image. The secret image can be
reconstructed by stacking the two shares. The underlying operation of this scheme is logical
operation OR.
In this paper, we call a VCS with random shares the traditional VCS or simply the VCS. In
general, a traditional VCS takes a secret image as input, and outputs shares that satisfy two
conditions: 1) any qualified subset of shares can recover the secret image; 2) any forbidden
subset of shares cannot obtain any information of the secret image other than the size of
the secret image. An example of traditional (2,2)-VCS can be found in Fig. 1, where,
generally speaking, a VCS means any out of shares could recover the secret image. In the
scheme of Fig. 1, shares (a) and (b) are distributed to two participants secretly, and each
participant cannot get any information about the secret image, but after
stacking shares (a) and (b), the secret image can be observed visually by the participants.
VCS has many special applications, for example, transmitting military orders to soldiers who
may have no cryptographic knowledge or computation devices in the battle field. Many other
applications of VCS, other than its original objective (i.e., sharing secret image), have been
found, for example, authentication and identification, watermarking
|7
Generally, an EVCS takes a secret image and original share images as inputs, and outputs
shares that satisfy the following three conditions: 1) any qualified subset of shares can
recover the secret image; 2) any forbidden subset of shares cannot obtain any information
of the secret image other than the size of the secret image; 3) all the shares are meaningful
images. Examples of EVCS can be found in the experimental results of this
paper, such as Figs. 29. EVCS can also be treated as a technique of steganography. One
scenario of the applications of EVCS is to avoid the custom inspections, because the shares
of EVCS are meaningful images, hence there are fewer chances for the shares to be
suspected and detected.
|8
CHAPTER 02
SYSTEM ANALYSIS:
PROBLEM DEFINITION:
Whenever we transmit the data(image) in the network, any unauthenticated person can
read our data(image). In order to provide security to data (image) generally sender will
encrypt the data (image) and send it the intended person and the receiver will decrypt the
encrypted data (image) and uses it.
EXISTING SYSTEM:
Visual cryptography is the art and science of encrypting the image in such a way that
no-one apart from the sender and intended recipient even realizes the original image, a
form of security through obscurity. By contrast, cryptography obscures the original image,
but it does not conceal the fact that it is not the actual image.
The existing system does not provide a friendly environment to encrypt or decrypt the data
(images).
|9
PROPOSED SYSTEM:
EVCS is flexible in the sense that there exist two trade-offs between the share pixel
expansion and the visual quality of the shares and between the secret image pixel expansion
and the visual quality of the shares. This flexibility allows the dealer to choose the proper
parameters for different applications. Comparisons on the experimental results show that
the visual quality of the share of the proposed embedded EVCS is competitive
with that of many of the well-known EVCSs in the literature.
| 10
FEASIBILITY STUDY:
The feasibility of the project is analyzed in this phase and business proposal is put forth with
a very general plan for the project and some cost estimates. During system analysis the
feasibility study of the proposed system is to be carried out. This is to ensure that the
proposed system is not a burden to the company. For feasibility analysis, some
understanding of the major requirements for the system is essential.
ECONOMICAL FEASIBILITY
TECHNICAL FEASIBILITY
SOCIAL FEASIBILITY
ECONOMICAL FEASIBILITY
This study is carried out to check the economic impact that the system will have on
the organization. The amount of fund that the company can pour into the research and
development of the system is limited. The expenditures must be justified. Thus the
developed system as well within the budget and this was achieved because most of the
technologies used are freely available. Only the customized products had to be purchased.
| 12
TECHNICAL FEASIBILITY
This study is carried out to check the technical feasibility, that is, the technical
requirements of the system. Any system developed must not have a high demand on the
available technical resources. This will lead to high demands on the available technical
resources. This will lead to high demands being placed on the client. The developed system
must have a modest requirement, as only minimal or null changes are required for
implementing this system.
SOCIAL FEASIBILITY
The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The user must
not feel threatened by the system, instead must accept it as a necessity. The level of
acceptance by the users solely depends on the methods that are employed to educate the
user about the system and to make him familiar with it. His level of confidence must be
raised so that he is also able to make some constructive criticism, which is welcomed, as he
is the final user of the system.
| 13
HARDWARE REQUIREMENTS:
SOFTWARE REQUIREMENTS:
FUNCTIONAL REQUIREMENTS:
Functional requirements specify which output file should be produced from the given file
they describe the relationship between the input and output of the system, for each
functional requirement a detailed description of all data inputs and their source and the
range of valid inputs must be specified.
Describe user-visible aspects of the system that are not directly related with the functional
behavior of the system. Non-Functional requirements include quantitative constraints, such
as response time (i.e. how fast the system reacts to user commands.) or accuracy ((.e.
how precise are the systems numerical answers.)
PSEUDO REQUIREMENTS:
The client that restricts the implementation of the system imposes these requirements.
Typical pseudo requirements are the implementation language and the platform on which
the system is to be implemented. These have usually no direct effect on the users view of
the system.
| 15
LITERATURE SURVEY:
Literature survey is the most important step in software development process. Before
developing the tool it is necessary to determine the time factor, economy n company
strength. Once these things r satisfied, ten next step is to determine which operating system
and language can be used for developing the tool. Once the programmers start building the
tool the programmers need lot of external support. This support can be obtained from senior
programmers, from book or from websites. Before building the system the above
consideration r taken into account for developing the proposed system.
The associated secret sharing problem and its physical properties such as contrast, pixel
expansion, and color were extensively studied by researchers worldwide. For example, Naor
et al and Blundo et al. showed constructions of threshold VCS with perfect reconstruction of
the black pixels. Ateniese et al. gave constructions of VCS for the general access structure.
Krishna et al., Luo et al., Hou et al., and Liu et al. considered color VCSs.Shyu et al.
proposed a scheme which can share multiple secret images [13]. Furthermore, Eisen et al.
proposed a construction of threshold VCS for specified whiteness levels of the recovered
pixels.
The term of extended visual cryptography scheme (EVCS) was first introduced by Naor et al.
in, where a simple example of (2,2)-EVCS was presented. In this paper, when we refer to a
corresponding VCS of an EVCS, we mean a traditional VCS that have the same access
structure with the EVCS. Generally, an EVCS takes a secret image and original share images
as inputs, and outputs shares that satisfy the following three conditions: 1) any qualified
subset of shares can recover the secret image; 2) any forbidden subset of shares cannot
obtain any information of the secret image other than the size of the secret image; 3) all the
shares are meaningful images.
EVCS can also be treated as a technique of steganography. One scenario of the applications
of EVCS is to avoid the custom inspections, because the shares of EVCS are meaningful
images, hence there are fewer chances for the shares to be suspected and detected.
There have been many EVCSs proposed in the literature. Furthermore, Zhou et al. [20]
presented an EVCS by using halftoning techniques, and hence can treat gray-scale input
| 16
share images. Theirmethodsmade use of the complementary images to cover the visual
information of the share images. Recently, Wang et al. proposed three EVCSs by using an
error diffusion halftoning technique to obtain nice looking shares. Their first EVCS also made
use of complementary shares to cover the visual information of the shares as the way
proposed in. Their second EVCS imported auxiliary black pixels to cover the visual
information of the shares. In such a way, each qualified participants did not necessarily
require a pair of complementary share images. Their third EVCS modified the halftoned
share images and imported extra black pixels to cover the visual information of the shares.
1) Visual Cryptography for General Access Structure by Multi-pixel Encoding with Variable
Block Size:
Multi-pixel encoding is an emerging method in visual cryptography for that it can encode
more than one pixel for each run. However, in fact its encoding efficiency is still low. This
paper presents a novel multi-pixel encoding which can encode variable number of pixels for
each run. The length of encoding at one run is equal to the number of the consecutive same
pixels met during scanning the secret image. The proposed scheme can work well for
general access structure and chromatic images without pixel expansion. The experimental
results also show that it can achieve high efficiency for encoding and good quality for
overlapped images.
Visual cryptography encodes a secret binary image (SI) into shares of random binary
patterns. If the shares are xeroxed onto transparencies, the secret image can be visually
decoded by superimposing a qualified subset of transparencies, but no secret information
can be obtained from the superposition of a forbidden subset. The binary patterns of the
shares, however, have no visual meaning and hinder the objectives of visual cryptography.
Extended visual cryptography [1] was proposed recently to construct meaningful binary
images as shares using hypergraph colourings, but the visual quality is poor. In this paper, a
novel technique named halftone visual cryptography is proposed to achieve visual
| 17
cryptography via halftoning. Based on the blue-noise dithering principles, the proposed
method utilizes the void and cluster algorithm [2] to encode a secret binary image into
halftone shares (images) carrying significant visual information. The simulation shows that
the visual quality of the obtained halftone shares are observably better than that attained by
any available visual cryptography method known to date.
In this paper, we discuss how to use watermarking technique for visual cryptography. Both
halftone watermarking and visual cryptography involve a hidden secret image. However,
their concepts are different. For visual cryptography, a set of share binary images is used to
protect the content of the hidden image. The hidden image can only be revealed when
enough share images are obtained. For watermarking, the hidden image is usually
embedded in a single halftone image while preserving the quality of the watermarked
halftone image. In this paper, we proposed a Joint Visual-cryptography and watermarking
(JVW) algorithm that has the merits of both visual cryptography and watermarking.
Visual Cryptography is based on cryptography where n images are encoded in a way that
only the human visual system can decrypt the hidden message without any cryptographic
computations when all shares are stacked together. This paper presents an improved
algorithm based on Changs and Yu visual cryptography scheme for hiding a colored image
into multiple colored cover images. This scheme achieves lossless recovery and reduces the
noise in the cover images without adding any computational complexity.
| 19
MODULES:
MODULES DESCRIPTION:
In this module, we design user interface design using applet frame work. The user interface
should be very easy and understandable to every user. So that any one can access using
our system. It must be supportable using various GUIs. The user interface also consists of
help file. The help file assists on every concepts of the embedded visual cryptography. Help
file should clearly depict the details of the project developed in simple language using
various screen shoots.
This module is the core for the project, where we implement the Visual Cryptography. We
used LZW Data Compression algorithm. The LZW data compression algorithm is applied for
the gray scale image here. As a pre-processing step, a dictionary is prepared for the gray
scale image. In this dictionary, the string replaces characters with single quotes. Calculations
are done using dynamic Huffman coding. In compression of greyscale image select the
information pixels. Then generate halftone shares using error diffusion method. At last filter
process is applied for the output gray scale images. Filters are used to improve the quality of
reconstructed image to minimize the noises for sharpening the input secret image.
Encoding:
Decoding:
The decoding algorithm works by reading a value from the encoded input and outputting the
corresponding string from the initialized dictionary. At the same time it obtains the next
value from the input, and adds to the dictionary the concatenation of the string just output
and the first character of the string obtained by decoding the next input value. The decoder
then proceeds to the next input value (which was already read in as the "next value" in the
previous pass) and repeats the process until there is no more input, at which point the final
input value is decoded without any more additions to the dictionary.
In this way the decoder builds up a dictionary which is identical to that used by the encoder,
and uses it to decode subsequent input values. Thus the full dictionary does not need be
sent with the encoded data; just the initial dictionary containing the single-character strings
is sufficient (and is typically defined beforehand within the encoder and decoder rather than
being explicitly sent with the encoded data.)
Creating Transparencies:
This scheme provides theoretically perfect secrecy. An attacker who obtains either the
transparency image or the screen image obtains no information at all about the encoded
| 21
image since a black-white square on either image is equally likely to encode a clear or dark
square in the original image. Another valuable property of visual cryptography is that we can
create the second layer after distributing the first layer to produce any image we want.
Given a known transparency image, we can select a screen image by choosing the
appropriate squares to produce the desired image. One of the most obvious limitations of
using visual cryptography in the past was the problem of the decoded image containing an
overall gray effect due to the leftover black sub pixel from encoding. This occurred because
the decoded image is not an exact preproduction, but an expansion of the original, with
extra black pixel. Black pixel in the original document remains black pixel in the decoded
version, but White pixel becomes gray. This resulted in a lot of contrast to the entire image.
The extra black sub pixel in the image causes the image to become distorted.
The simplest form of visual cryptography separates an image into two layers so that either
layer by itself conveys no information, but when the layers are combined the image is
revealed. One layer can be printed on a transparency, and the other layer displayed on a
monitor. When the transparency is placed on top of the monitor and aligned correctly, the
image is revealed. For each image pixel, one of the two encoding options is randomly
selected with equal probability. Then, the appropriate colorings of the transparency and
screen squares are determined based on the color of the pixel in the image.
This is the final module, which consists of integration of Visual cryptography implementation
module into interface design using applet viewer. Then we need to test with various images
and formation of transparencies. The transparencies should be able to save and load into
the user interface.
CHAPTER 03
SYSTEM DESIGN:
The DFD is also called as bubble chart. It is a simple graphical formalism that
can be used to represent a system in terms of the input data to the system, various
processing carried out on these data, and the output data is generated by the
system
The data flow diagram (DFD) is one of the most important modeling tools. It is used
to model the system components. These components are the system process, the
data used by the process, an external entity that interacts with the system and the
information flows in the system.
DFD shows how the information moves through the system and how it is modified by
a series of transformations. It is a graphical technique that depicts information flow
and the transformations that are applied as data moves from input to output.
| 23
DFD is also known as bubble chart. A DFD may be used to represent a system at any
level of abstraction. DFD may be partitioned into levels that represent increasing
information flow and functional detail.
| 24
NOTATION:
DATA SOURCE:
Here the data referenced by a process is stored and retrieved.
PROCESS:
People, procedures or devices that produce data. The physical component is not identified.
DATA FLOW:
Data moves in a specific direction from an origin to a destination. The data flow is a
packet of data.
MODELING RULES:
1. All processes must have at least one data flow in and one data flow out.
2. All processes should modify the incoming data, producing new forms of outgoing
data.
3. Each data store must be involved with at least one data flow.
4. Each external entity must be involved with at least one data flow.
SDLC:
SPIRAL MODEL:
PROJECT ARCHITECTURE:
| 26
UML DIAGRAMS:
CLASS DIAGRAM:
| 28
SEQUENCE DIAGRAM:
| 29
ACTIVITY DIAGRAM:
| 30
ER DIAGRAM DIAGRAM:
| 31
DATAFLOW DIAGRAM:
| 32
CHAPTER 04
PROCESS SPECIFICATION:
INPUT DESIGN:
The input design is the link between the information system and the user. It comprises the
developing specification and procedures for data preparation and those steps are necessary
to put transaction data in to a usable form for processing can be achieved by inspecting the
computer to read data from a written or printed document or it can occur by having people
keying the data directly into the system. The design of input focuses on controlling the
amount of input required, controlling the errors, avoiding delay, avoiding extra steps and
keeping the process simple. The input is designed in such a way so that it provides security
and ease of use with retaining the privacy. Input Design considered the following things:
OBJECTIVES:
1.Input Design is the process of converting a user-oriented description of the input into a
computer-based system. This design is important to avoid errors in the data input process
and show the correct direction to the management for getting correct information from the
computerized system.
2. It is achieved by creating user-friendly screens for the data entry to handle large volume
of data. The goal of designing input is to make data entry easier and to be free from errors.
The data entry screen is designed in such a way that all the data manipulates can be
performed. It also provides record viewing facilities.
3.When the data is entered it will check for its validity. Data can be entered with the help of
screens. Appropriate messages are provided as when needed so that the user
| 33
will not be in maize of instant. Thus the objective of input design is to create an input
layout that is easy to follow
OUTPUT DESIGN:
A quality output is one, which meets the requirements of the end user and presents the
information clearly. In any system results of processing are communicated to the users and
to other system through outputs. In output design it is determined how the information is to
be displaced for immediate need and also the hard copy output. It is the most important
and direct source information to the user. Efficient and intelligent output design improves
the systems relationship to help user decision-making.
1. Designing computer output should proceed in an organized, well thought out manner; the
right output must be developed while ensuring that each output element is designed so that
people will find the system can use easily and effectively. When analysis design computer
output, they should Identify the specific output that is needed to meet the requirements.
2.Select methods for presenting information.
3.Create document, report, or other formats that contain information produced by the
system.
The output form of an information system should accomplish one or more of the following
objectives.
Convey information about past activities, current status or projections of the
Future.
Signal important events, opportunities, problems, or warnings.
Trigger an action.
Confirm an action.
In this technology, the end user identifies an image, which is going to act as the carrier of
data. The data file is also selected and then to achieve greater speed of transmission the
data file and image file are compressed and sent. Prior to this the data is embedded into the
image and then sent. The image if hacked or interpreted by a third party user will open up
in any image previewed but not displaying the data. This protects the data from being
| 34
invisible and hence is secure during transmission. The user in the receiving end uses
another piece of code to retrieve the data from the image.
ALGORITHM:
Input: The c x d dithering matrix D and a pixel with gray-level g in input image I.
Output: The halftoned pattern at the position of the pixel
For i=0 to c-1 do
For j=0 to d-1 to do
If g<=Dij then print a black pixel at position (i,j);
Else print a white pixel at position (i,j);
For embedding
| 35
SCREEN HOTS:
Fig: User interface which allows the users to work with Steganography tool
| 36
CHAPTER 05
TECHNOLOGY DESCRIPTION:
JAVA TECHNOLOGY:
Simple
Architecture neutral
Object oriented
Portable
Distributed
High performance
Interpreted
Multithreaded
Robust
Dynamic
Secure
With most programming languages, you either compile or interpret a program so that you
can run it on your computer. The Java programming language is unusual in that a program
is both compiled and interpreted. With the compiler, first you translate a program into an
intermediate language called Java byte codes the platform-independent codes interpreted
by the interpreter on the Java platform. The interpreter parses and runs each Java byte
code instruction on the computer. Compilation happens just once; interpretation occurs each
time the program is executed. The following figure illustrates how this works.
| 44
You can think of Java byte codes as the machine code instructions for the Java
Virtual Machine (Java VM). Every Java interpreter, whether its a development tool or a Web
browser that can run applets, is an implementation of the Java VM. Java byte codes help
make write once, run anywhere possible. You can compile your program into byte codes
on any platform that has a Java compiler. The byte codes can then be run on any
implementation of the Java VM. That means that as long as a computer has a Java VM, the
same program written in the Java programming language can run on Windows 2000, a
Solaris workstation, or on an iMac.
Youve already been introduced to the Java VM. Its the base for the Java platform and is
ported onto various hardware-based platforms.
The Java API is a large collection of ready-made software components that provide many
useful capabilities, such as graphical user interface (GUI) widgets. The Java API is grouped
into libraries of related classes and interfaces; these libraries are known as packages. The
next section, What Can Java Technology Do? Highlights what functionality some of the
packages in the Java API provide.
The following figure depicts a program thats running on the Java platform. As the figure
shows, the Java API and the virtual machine insulate the program from the hardware.
Native code is code that after you compile it, the compiled code runs on a specific hardware
platform. As a platform-independent environment, the Java platform can be a bit slower
than native code. However, smart compilers, well-tuned interpreters, and just-in-time byte
code compilers can bring performance close to that of native code without threatening
portability.
However, the Java programming language is not just for writing cute, entertaining applets
for the Web. The general-purpose, high-level Java programming language is also a powerful
software platform. Using the generous API, you can write many types of programs.
| 46
An application is a standalone program that runs directly on the Java platform. A special
kind of application known as a server serves and supports clients on a network. Examples of
servers are Web servers, proxy servers, mail servers, and print servers. Another specialized
program is a servlet. A servlet can almost be thought of as an applet that runs on the server
side. Java Servlets are a popular choice for building interactive web applications, replacing
the use of CGI scripts. Servlets are similar to applets in that they are runtime extensions of
applications. Instead of working in browsers, though, servlets run within Java Web servers,
configuring or tailoring the server.
How does the API support all these kinds of programs? It does so with packages of software
components that provides a wide range of functionality. Every full implementation of the
Java platform gives you the following features:
The essentials: Objects, strings, threads, numbers, input and output, data
structures, system properties, date and time, and so on.
Applets: The set of conventions used by applets.
Networking: URLs, TCP (Transmission Control Protocol), UDP (User Data gram
Protocol) sockets, and IP (Internet Protocol) addresses.
Internationalization: Help for writing programs that can be localized for users
worldwide. Programs can automatically adapt to specific locales and be displayed in the
appropriate language.
Security: Both low level and high level, including electronic signatures, public and
private key management, access control, and certificates.
Software components: Known as JavaBeansTM, can plug into existing component
architectures.
Object serialization: Allows lightweight persistence and communication via
Remote Method Invocation (RMI).
Java Database Connectivity (JDBCTM): Provides uniform access to a wide range
of relational databases.
The Java platform also has APIs for 2D and 3D graphics, accessibility, servers, collaboration,
telephony, speech, animation, and more. The following figure depicts what is included in the
Java 2 SDK.
| 47
Distribute software more easily: You can upgrade applets easily from a central
server. Applets take advantage of the feature of allowing new classes to be loaded on the
fly, without recompiling the entire program.
ODBC
Through the ODBC Administrator in Control Panel, you can specify the particular database
that is associated with a data source that an ODBC application program is written to use.
Think of an ODBC data source as a door with a name on it. Each door will lead you to a
particular database. For example, the data source named Sales Figures might be a SQL
Server database, whereas the Accounts Payable data source could refer to an Access
database. The physical database referred to by a data source can reside anywhere on the
LAN.
The ODBC system files are not installed on your system by Windows 95. Rather, they are
installed when you setup a separate database application, such as SQL Server Client or
Visual Basic 4.0. When the ODBC icon is installed in Control Panel, it uses a file called
ODBCINST.DLL. It is also possible to administer your ODBC data sources through a stand-
alone program called ODBCADM.EXE. There is a 16-bit and a 32-bit version of this program
and each maintains a separate list of ODBC data sources.
From a programming perspective, the beauty of ODBC is that the application can be written
to use the same set of function calls to interface with any data source, regardless of the
| 49
database vendor. The source code of the application doesnt change whether it talks to
Oracle or SQL Server. We only mention these two as an example. There are ODBC drivers
available for several dozen popular database systems. Even Excel spreadsheets and plain
text files can be turned into data sources. The operating system uses the Registry
information written by ODBC Administrator to determine which low-level ODBC drivers are
needed to talk to the data source (such as the interface to Oracle or SQL Server). The
loading of the ODBC drivers is transparent to the ODBC application program. In a
client/server environment, the ODBC API even handles many of the network issues for the
application programmer.
The advantages of this scheme are so numerous that you are probably thinking there must
be some catch. The only disadvantage of ODBC is that it isnt as efficient as talking directly
to the native database interface. ODBC has had many detractors make the charge that it is
too slow. Microsoft has always claimed that the critical factor in performance is the quality of
the driver software that is used. In our humble opinion, this is true. The availability of good
ODBC drivers has improved a great deal recently. And anyway, the criticism about
performance is somewhat analogous to those who said that compilers would never match
the speed of pure assembly language. Maybe not, but the compiler (or ODBC) gives you the
opportunity to write cleaner programs, which means you finish sooner. Meanwhile,
computers get faster every year.
JDBC
In an effort to set an independent database standard API for Java; Sun Microsystems
developed Java Database Connectivity, or JDBC. JDBC offers a generic SQL database access
mechanism that provides a consistent interface to a variety of RDBMSs. This consistent
interface is achieved through the use of plug-in database connectivity modules, or drivers.
If a database vendor wishes to have JDBC support, he or she must provide the driver for
each platform that the database and Java run on.
To gain a wider acceptance of JDBC, Sun based JDBCs framework on ODBC. As you
discovered earlier in this chapter, ODBC has widespread support on a variety of platforms.
| 50
Basing JDBC on ODBC will allow vendors to bring JDBC drivers to market much faster than
developing a completely new connectivity solution.
JDBC was announced in March of 1996. It was released for a 90 day public review that
ended June 8, 1996. Because of user input, the final JDBC v1.0 specification was released
soon after.
The remainder of this section will cover enough information about JDBC for you to know
what it is about and how to use it effectively. This is by no means a complete overview of
JDBC. That would fill an entire book.
JDBC Goals
Few software packages are designed without goals in mind. JDBC is one that, because of its
many goals, drove the development of the API. These goals, in conjunction with early
reviewer feedback, have finalized the JDBC class library into a solid framework for building
database applications in Java.
The goals that were set for JDBC are important. They will give you some insight as to why
certain classes and functionalities behave the way they do. The eight design goals for JDBC
are as follows:
And for dynamically updating the cache table we go for MS Access database.
| 52
SIMPLE ARCHITECTURE-NEUTRAL
OBJECT-ORIENTED PORTABLE
DISTRIBUTED HIGH-PERFORMANCE
INTERPRETED MULTITHREADED
ROBUST DYNAMIC
SECURE
JAVA IS ALSO UNUSUAL IN THAT EACH JAVA PROGRAM IS BOTH COMPILED AND INTERPRETED.
WITH A COMPILE YOU TRANSLATE A JAVA PROGRAM INTO AN INTERMEDIATE LANGUAGE CALLED
JAVA BYTE CODES THE PLATFORM-INDEPENDENT CODE INSTRUCTION IS PASSED AND RUN ON
THE COMPUTER.
COMPILATION HAPPENS JUST ONCE; INTERPRETATION OCCURS EACH TIME THE PROGRAM IS
EXECUTED. THE FIGURE ILLUSTRATES HOW THIS WORKS.
| 53
Compilers My Program
YOU CAN THINK OF JAVA BYTE CODES AS THE MACHINE CODE INSTRUCTIONS FOR THE JAVA
VIRTUAL MACHINE (JAVA VM). EVERY JAVA INTERPRETER, WHETHER ITS A JAVA DEVELOPMENT
TOOL OR A WEB BROWSER THAT CAN RUN JAVA APPLETS, IS AN IMPLEMENTATION OF THE JAVA
VM. THE JAVA VM CAN ALSO BE IMPLEMENTED IN HARDWARE.
JAVA BYTE CODES HELP MAKE WRITE ONCE, RUN ANYWHERE POSSIBLE. YOU CAN COMPILE
YOUR JAVA PROGRAM INTO BYTE CODES ON MY PLATFORM THAT HAS A JAVA COMPILER. THE
BYTE CODES CAN THEN BE RUN ANY IMPLEMENTATION OF THE JAVA VM. FOR EXAMPLE, THE
SAME JAVA PROGRAM CAN RUN WINDOWS NT, SOLARIS, AND MACINTOSH.
| 54
Networking
TCP/IP stack
IP datagrams
The IP layer provides a connectionless and unreliable delivery system. It considers each
datagram independently of the others. Any association between datagram must be supplied
by the higher layers. The IP layer supplies a checksum that includes its own header. The
header includes the source and destination addresses. The IP layer handles routing through
an Internet. It is also responsible for breaking up large datagram into smaller ones for
transmission and reassembling them at the other end.
| 55
UDP
UDP is also connectionless and unreliable. What it adds to IP is a checksum for the contents
of the datagram and port numbers. These are used to give a client/server model - see later.
TCP
TCP supplies logic to give a reliable connection-oriented protocol above IP. It provides a
virtual circuit that two processes can use to communicate.
Internet addresses
In order to use a service, you must be able to find it. The Internet uses an address scheme
for machines so that they can be located. The address is a 32 bit integer which gives the IP
address. This encodes a network ID and more addressing. The network ID falls into various
classes according to the size of the network address.
Network address
Class A uses 8 bits for the network address with 24 bits left over for other addressing. Class
B uses 16 bit network addressing. Class C uses 24 bit network addressing and class D uses
all 32.
Subnet address
Internally, the UNIX network is divided into sub networks. Building 11 is currently on one
sub network and uses 10-bit addressing, allowing 1024 different hosts.
Host address
8 bits are finally used for host addresses within our subnet. This places a limit of 256
machines that can be on the subnet.
Total address
| 56
Port addresses
A service exists on a host, and is identified by its port. This is a 16 bit number. To send a
message to a server, you send it to the port for that service of the host that it is running on.
This is not location transparency! Certain of these ports are "well known".
Sockets
#include <sys/types.h>
#include <sys/socket.h>
int socket(int family, int type, int protocol);
Here "family" will be AF_INET for IP communications, protocol will be zero, and type will
depend on whether TCP or UDP is used. Two processes wishing to communicate over a
network create a socket each. These are similar to two ends of a pipe - but the actual pipe
does not yet exist.
| 57
JFree Chart
JFreeChart is a free 100% Java chart library that makes it easy for developers to display
professional quality charts in their applications. JFreeChart's extensive feature set includes:
A consistent and well-documented API, supporting a wide range of chart types;
A flexible design that is easy to extend, and targets both server-side and client-side
applications;
Support for many output types, including Swing components, image files (including PNG and
JPEG), and vector graphics file formats (including PDF, EPS and SVG);
JFreeChart is "open source" or, more specifically, free software. It is distributed under the
terms of the GNU Lesser General Public Licence (LGPL), which permits use in proprietary
applications.
1. Map Visualizations
Charts showing values that relate to geographical areas. Some examples include: (a)
population density in each state of the United States, (b) income per capita for each country
in Europe, (c) life expectancy in each country of the world. The tasks in this project include:
Sourcing freely redistributable vector outlines for the countries of the world, states/provinces
in particular countries (USA in particular, but also other areas);
Creating an appropriate dataset interface (plus default implementation), a rendered, and
integrating this with the existing XYPlot class in JFreeChart;
Testing, documenting, testing some more, documenting some more.
3. Dashboards
There is currently a lot of interest in dashboard displays. Create a flexible dashboard
mechanism that supports a subset of JFreeChart chart types (dials, pies, thermometers,
| 58
bars, and lines/time series) that can be delivered easily via both Java Web Start and an
applet.
4. Property Editors
The property editor mechanism in JFreeChart only handles a small subset of the properties
that can be set for charts. Extend (or reimplement) this mechanism to provide greater end-
user control over the appearance of the charts.
CHAPTER 06
TYPE OF TESTING:
UNIT TESTING:
Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be conducted
as two distinct phases.
Test objectives
Features to be tested
SYSTEM TESTING:
The purpose of testing is to discover errors. Testing is the process of trying to discover
every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the Software system meets
its requirements and user expectations and does not fail in an unacceptable manner. There
are various types of test. Each test type addresses a specific testing requirement.
INTEGRATION TESTING:
Software integration testing is the incremental integration testing of two or more integrated
software components on a single platform to produce failures caused by interface defects.
The task of the integration test is to check that components or software applications,
e.g. components in a software system or one step up software applications at the
company level interact without error.
Test Results: All the test cases mentioned above passed successfully. No defects
encountered.
| 61
FUNCTIONAL TESTING:
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.
Functional testing is centered on the following items:
TABLE:
A database is a collection of data about a specific topic.
VIEWS OF TABLE:
We can work with a table in two types,
1. Design View
2. Datasheet View
Design View
To build or modify the structure of a table we work in the table design view. We can
specify what kind of data will be hold.
| 62
Datasheet View
To add, edit or analyses the data itself we work in tables datasheet view mode.
QUERY:
A query is a question that has to be asked the data. Access gathers data that answers the
question from one or more table. The data that make up the answer is either dynaset (if you
edit it) or a snapshot (it cannot be edited).Each time we run query, we get latest
information in the dynaset. Access either displays the dynaset or snapshot for us to view or
perform an action on it, such as deleting or updating.
| 63
CHAPTER 07
CONCLUSION:
In this paper, we proposed a construction of EVCS which was realized by embedding the
random shares into the meaningful covering shares. The shares of the proposed scheme are
meaningful images, and the stacking of a qualified subset of shares will recover the secret
image visually. We show two methods to generate the covering shares, and proved the
optimality on the black ratio of the threshold covering subsets. We also proposed a method
to improve the visual quality of the share images. According to comparisons with many of
the well-known EVCS in the literature the proposed embedded EVCS has many specific
advantages against different well-known schemes, such as the fact that it can deal with
gray-scale input images, has smaller pixel expansion, is always unconditionally secure, does
not require complementary share images, one participant only needs to carry one share, and
can be applied for general access structure. Furthermore, our construction is flexible in the
sense that there exist two trade-offs between the share pixel expansion and the visual
quality of the shares and between the secret image pixel expansion and the visual quality of
the shares.
[1] A. Shamir, How to share a secret, Commun. ACM, vol. 22, no. 11, pp. 612613, 1979.
[3] M. Naor and A. Shamir, Visual cryptography, in Proc. EUROCRYPT 94, Berlin,
Germany, 1995, vol. 950, pp. 112, Springer-Verlag, LNCS.
[4] M. Naor and B. Pinkas, Visual authentication and identification, in Proc. CRYPTO97,
1997, vol. 1294, pp. 322336, Springer-Verlag LNCS.
[6] P. Tuyls, T. Kevenaar, G. J. Schrijen, T. Staring, and M. Van Dijk, Security displays
enabling secure communications, in Proc. First Int. Conf. Pervasive Computing, Boppard
Germany, Springer-Verlag Berlin LNCS, 2004, vol. 2802, pp. 271284.
[7] C. Blundo, A. De Bonis, and A. De Santis, Improved schemes for visual cryptography,
Designs, Codes and Cryptography, vol. 24, pp. 255278, 2001.
[8] G. Ateniese, C. Blundo, A. De Santis, and D. R. Stinson, Visual cryptography for general
access structures, Inf. Computat., vol. 129, pp. 86106, 1996.
[9] N. K. Prakash and S. Govindaraju, Visual secret sharing schemes for color images using
halftoning, in Proc. Int. Conf. Computational Intelligence and Multimedia Applications
(ICCIMA 2007), 2007, vol. 3, pp. 174178.
[10] H. Luo, F.X.Yu, J. S. Pan, and Z. M. Lu, Robust and progressive color image visual
secret sharing cooperated with data hiding, in Proc. 2008 Eighth Int. Conf. Intelligent
Systems Design and Applications, 2008, vol. 3, pp. 431436.
| 65
SITES REFERRED:
http://java.sun.com
http://www.sourcefordgde.com
http://www.networkcomputing.com/
http://www.roseindia.com/
http://www.java2s.com/