Edify-Text editor with cryptographic features Aniket Thakur(2009C6PS386G) April 26, 2012
AbstractThere are many simple text editors available in market. However most ofthem don’t provide the facility to protect user data.Edify-text editor is madetaking this idea into consideration. It is a special text editor with encryp-tion/decryption techniques.It is made using object oriented approach on javabased platform.It is strictly a windows operating system based editor andmust not be used on other operating systems.
Figure 1: Edify user Interface0.1 UI(User Interface)Though Edify incorporates some additional features basic layout of the editoris consistent.Top layout consists of toolbar and a menubar.Center layoutconsists of the editable text area where as the left layout displays the numberof lines used.Finally the bottom layout displays three important features. 1. System time 2. Caps-Lock status 3. Word wrap statusToolbar consists of following items 1. new 2. open 3. save 4. cut 5. copy 2
6. paste 7. simple search 8. display typeMenubar consists of following items 1. ﬁle 2. edit 3. format 4. view 5. font 6. help 7. crypto 8. openappFunctions of all the above items will be explained in coming features section.0.2 FeaturesMost of the menubar and toolbar items are associated with shortcuts.0.2.1 MenubarFile This has various item like creating new ﬁle,opening existing ﬁle or sav- ing it.It also contain sub-item for exiting the program.edit This contains various edit options like cut,copy,paste,delete,go to line(takes you to the line number given as input),search and replace and select all.Format This contains word wrap as a sub-items which allows enabling/disabling of word wrap feature. 3
View This allows full screen feature for the editor.Fonts This allows user to set various types of font,sizes and attributes to the editor’s text.Crypto This allows user to encrypt/decrypt an entire ﬁle.openApp This allows you to open any ﬁle from your text editor itself.Selected ﬁle will open in the default program associated with it.Help This provides general help for users.0.2.2 Toolbarnew Creates a new ﬁle.open Opens a existing ﬁle.save Saves current ﬁle.cut Cut selected text.copy Copy selected text.paste Paste selected text.Search Simple search.Display Style Allows user to choose between various display styles sup- ported. 4
Figure 2: Popup menu0.2.3 Popup MenuThis can be used by 3rd clicking of mouse.Cut Cut selected text.Copy Copy selected text.Paste Paste selected text.Delete Delete selected text.GoToLine Go to line number provided as input.selectAll Select all text.Encrypt Encrypt selected text.Decrypt Decrypt selected text.0.3 Techniques usedWhole user interface is done by java swing and awt classes.Java threads are used to display system time,caps lock status and word wrapstatus on bottom layout of the editor.Fonts and display styles are the one which the system running the editor issupporting.Basic search provided in the toolbar uses document technique to ﬁnd the 5
requires search word.Advanced search with replace is provided in edit item of menubar.OpenApp feature use process and runtime execution in java with DOS com-mands to open any ﬁle with it’s default application.Techniques used in encryption/decryption which forms the major feature ofthe editor is described as follows-Encrypting/Decrypting whole ﬁle This feature can be used via crypto item in menubar.User must select a ﬁle(.txt) and provide a suitable password to encrypt the ﬁle.Encrypted ﬁle is stored in the same di- rectory as.enc ﬁle. Basic technique used is Password-Based Encryp- tion(PBE).PBE derives an encryption key from a password.Algorithm used is “PBEWithMD5AndDES”.Encrypting/Decrypting selected text This feature is provided in the popup menu which can be triggered by 3rd click of mouse button.This is used the encrypt/decrypt selected text in the editor.User must ﬁrst select the text from the editor that he wishes to encrypt/decrypt and the use the functionality provided.Algorithm used here is “AES”.For string manipulations BASE64Encoder is used.0.4 ConclusionUsing text editor with cryptographic features ensures protection of users dataprivacy.Also additional features like time display and word wrap/caps lock statusdisplay facilitates user convenience.Running any application ﬁle from theeditor itself reduces user navigation time and increases eﬃciency.0.5 AcknowledgementWe are grateful to our project guide Dr. Neena Goveas, Ph.D. ,AssistantProfessor, Birla Institute of Technology and Science, Pilani - Goa Campusfor her time to time, much needed, valuable guidance. We also wish to express our profound thanks to all those who helped usby giving their valuable suggestions for the completion of our project. 6