SECURE NOTEPAD - PowerPoint PPT Presentation

About This Presentation
Title:

SECURE NOTEPAD

Description:

SECURE NOTEPAD BY ANKUR DESHMUKH & P JAYA SUNDERAM OVERVIEW Why this project ? Overview of SSL Architecture Overview of JSSE Our application WHY THIS PROJECT ? – PowerPoint PPT presentation

Number of Views:287
Avg rating:3.0/5.0
Slides: 15
Provided by: uccsEdu7
Learn more at: http://cs.uccs.edu
Category:
Tags: notepad | secure | java | network

less

Transcript and Presenter's Notes

Title: SECURE NOTEPAD


1
SECURE NOTEPAD
  • BYANKUR DESHMUKH
  • P JAYA SUNDERAM

2
OVERVIEW
  • Why this project ?
  • Overview of SSL
  • Architecture
  • Overview of JSSE
  • Our application

3
WHY THIS PROJECT ?
  • Convenience for users.
  • Learn about SSL (Secure Socket Layer)
  • Explore JSSE (Java Secure Socket Extension)
  • A big help to us.
  • Effort to make a contribution to open source

4
SSL SECURE SOCKET LAYER
  • Introduced by Netscape in 1994
  • Most widely used protocol for implementing
    cryptography on the web.
  • Used over TCP.
  • Why use SSL
  • Authenticate user
  • Protect data from attackers
  • SSL architecture

5
SSL (continued)
6
JSSE OVERVIEW
  • Implemented in 100 Pure Java
  • Provides API support for SSL versions 2.0 and
    3.0, and an implementation of SSL version 3.0
  • Includes classes that can be instantiated to
    create secure channels (SSLSocket,
    SSLServerSocket, and SSLEngine)
  • Support for various ciphers like RSA, DES,
    AES,DSA and others.

7
Continued
  • Provides support for client and server
    authentication, which is part of the normal SSL
    handshaking
  • Provides support for HTTP encapsulated in the
    SSL protocol (HTTPS), which allows access to data
    such as web pages using HTTPS
  • It ships with JSDK 1.4.2

8
ARCHITECTURE
9
CODE SNIPPET
  • Client
  • // Create a non-blocking socket channel
  • SocketChannel socketChannel SocketChannel.open()
  • socketChannel.configureBlocking(false)
  • socketChannel.connect(new InetSocketAddress(hostna
    me, port))
  • // Do initial handshake
  • doHandshake(socketChannel, engine, myNetData,
    peerNetData)
  • myAppData.put("hello".getBytes())
  • Server
  • int num socketChannel.read(peerNetData)
  • if (num -1) // Handle closed channel else
    if (num 0) // No bytes read try again ...
    else // Process incoming data
    peerNetData.flip()
  • res engine.unwrap(peerNetData, peerAppData)
  • if (res.getStatus() SSLEngineResult.Status.OK)
    peerNetData.compact() if (peerAppData.hasRemain
    ing()) // Use peerAppData

10
SECURE NOTEPAD
  • Written in java
  • Incorporated security using SSL
  • Emulates basic features of a notepad.
  • Edit
  • Formatting

11
CONTINUED..
12
CONTINUED..
13
CONTINUED..
14
BIBLIOGRAPHY
  • www.java.sun.com
  • www.openssl.org
  • Cryptography and Network Security PRINCIPLIES
    AND PRACTICES, William Stallings
Write a Comment
User Comments (0)
About PowerShow.com