Content Based Encryption System Using Symmetric
Key Cryptography
Shubham Jain Pushkar Singh
Computer Science and Engineering Computer Science and Engineering
Institute of Technology, Guru Ghasidas University Institute of Technology, Guru Ghasidas University
Koni, Bilaspur, Chhattisgarh, India Koni, Bilaspur, Chhattisgarh, India
shubhamjainkota@[Link] 1994pushkarsingh@[Link]
Abstract— With the growth in technology, there is always a need A. Encryption Algorithm
of good encryption method which may provide better security There are following steps which are involved in the
and authenticity with lesser computational complexities. encryption algorithm:
Although there are a lot of symmetric key algorithms which are
already been proposed, yet we are going to propose a content Step 1: Get the secret key and plain text from the user.
based symmetric key algorithm. This algorithm has two rounds
and each round uses the Ascii code of characters , round two Step 2: XOR each letter’s ascii code of the key with each other
serves as the heart of this algorithm as XOR operation is to generate the two digit number which will act key for first
performed here. round.
Step 3: Repeat the following steps to get the encrypted text
Keywords—Cryptography; symmetric key cryptography; cipher from the first round:
text; encryption; decryption
a. Count the length of each word given in the plain text
and find out the ascii value of each letter in the plain
I. INTRODUCTION (HEADING 1) text (exclude the spaces while counting the word
This template, modified in MS Word 2007 and saved as a length).
“Word 97-2003 Document” for the PC, provides authors with b. Add the two digit number generated in step 1 with the
most of the formatting specifications needed for preparing length of a word along with the ascii value of each
electronic versions of their papers. All standard paper letter.
components have been specified for three reasons: (1) ease of
use when formatting individual papers, (2) automatic Step 4: To generate the key for second round subtract second
compliance to electronic requirements that facilitate the digit from first digit.
concurrent or later production of electronic products, and (3)
Step 5: Repeat the following steps to get the encrypted text:
conformity of style throughout a conference proceedings.
Margins, column widths, line spacing, and type styles are built- a. Count the length of each word given in the plain text
in; examples of the type styles are provided throughout this and find out the ascii value of each letter in the plain
document and are identified in italic type, within parentheses, text (include the spaces while counting the word
following the example. Some components, such as multi- length).
leveled equations, graphics, and tables are not prescribed,
although the various table text styles are provided. The b. Add the key generated in step 4 with the word length
formatter will need to create these components, incorporating and perform XOR operation with ascii value of each
the applicable criteria that follow. letter to generate the cipher text.
Step 6: Send the cipher text and key to the reciepent.
II. PROPOSED MEHTOD
B. Decryption Algorithm
As in symmetric key cipher the secret key is used for the
encryption of data and this secret key is to be shared only with The template is used to format your paper and style the text.
the authorized receiver for the deciphering of the cipher text. Step 1: Get the key and cipher text.
So the confidentiality of the data is highly dependent on the
secret key. This algorithm encrypts the plain text two times to Step 2: XOR each letter’s ascii code of the key with each other
generate the secure cipher text using XOR operation in its to generate the two digit number which will act key for first
second round of encryption. round. This will be the key for second round of decryption.
Step 3: To generate the key for first round subtract second digit
from first digit.
Step 4: Repeat the following steps to get the decrypted text whether or not your equation should be typed using either the
from the first round: Times New Roman or the Symbol font (please no other font).
To create multileveled equations, it may be necessary to treat
a. Find out the spaces by XORing the cipher text with
the equation as a graphic and insert it into the text after your
32(ASCII value of space) and subtracting key from
paper is styled.
this, if this value is equal to index then its equivalent
character will be space.
b. XOR the each character of cipher text by (Length of Number equations consecutively. Equation numbers, within
the word + key generated in step 3) parentheses, are to position flush right, as in (1), using a right
tab stop. To make your equations more compact, you may use
Step 5: Repeat the following steps to get the plain text:
the solidus ( / ), the exp function, or appropriate exponents.
a. Subtract each character by (Length of the Italicize Roman symbols for quantities and variables, but not
corresponding word + key generated in step 2) Greek symbols. Use a long dash rather than a hyphen for a
minus sign. Punctuate equations with commas or periods when
Step 6: Print the Plain text. they are part of a sentence, as in
III. ILLUSTRATION OF PROPOSED METHOD
ab
The proposed method is well illustrated with an example
here:
A. Encryption Note that the equation is centered using a center tab stop.
Suppose “Hello World 2015” is a plain text which is to be Be sure that the symbols in your equation have been defined
encrypted. To obtain more secrecy we encrypt it twice, in the before or immediately following the equation. Use “(1),” not
first encryption process we encrypt the words (excluding “Eq. (1)” or “equation (1),” except at the beginning of a
space) sentence: “Equation (1) is ...”
D. Some Common Mistakes
efine abbreviations and acronyms the first time they are The word “data” is plural, not singular.
used in the text, even after they have been defined in the
abstract. Abbreviations such as IEEE, SI, MKS, CGS, sc, dc, The subscript for the permeability of vacuum 0, and
and rms do not have to be defined. Do not use abbreviations in other common scientific constants, is zero with
the title or heads unless they are unavoidable. subscript formatting, not a lowercase letter “o.”
In American English, commas, semi-/colons, periods,
question and exclamation marks are located within
quotation marks only when a complete thought or name
B. Decryption
is cited, such as a title or full quotation. When quotation
Use either SI (MKS) or CGS as primary units. (SI units marks are used, instead of a bold or italic typeface, to
are encouraged.) English units may be used as highlight a word or phrase, punctuation should appear
secondary units (in parentheses). An exception would outside of the quotation marks. A parenthetical phrase
be the use of English units as identifiers in trade, such or statement at the end of a sentence is punctuated
as “3.5-inch disk drive.” outside of the closing parenthesis (like this). (A
Avoid combining SI and CGS units, such as current in parenthetical sentence is punctuated within the
amperes and magnetic field in oersteds. This often leads parentheses.)
to confusion because equations do not balance A graph within a graph is an “inset,” not an “insert.”
dimensionally. If you must use mixed units, clearly The word alternatively is preferred to the word
state the units for each quantity that you use in an “alternately” (unless you really mean something that
equation. alternates).
Do not mix complete spellings and abbreviations of Do not use the word “essentially” to mean
units: “Wb/m2” or “webers per square meter,” not “approximately” or “effectively.”
“webers/m2.” Spell units when they appear in text: “...a
few henries,” not “...a few H.” In your paper title, if the words “that uses” can
accurately replace the word using, capitalize the “u”; if
Use a zero before decimal points: “0.25,” not “.25.” not, keep using lower-cased.
Use “cm3,” not “cc.” (bullet list)
Be aware of the different meanings of the homophones
C. Equation “affect” and “effect,” “complement” and “compliment,”
“discreet” and “discrete,” “principal” and “principle.”
The equations are an exception to the prescribed
specifications of this template. You will need to determine Do not confuse “imply” and “infer.”
Identify applicable sponsor/s here. If no sponsors, delete this text box
(sponsors).
The prefix “non” is not a word; it should be joined to number of affiliations, the final affiliation will be centered on
the word it modifies, usually without a hyphen. the page; all previous will be in two columns.
There is no period after the “et” in the Latin B. Identify the Headings
abbreviation “et al.”
Headings, or heads, are organizational devices that guide
The abbreviation “i.e.” means “that is,” and the the reader through your paper. There are two types: component
abbreviation “e.g.” means “for example.” heads and text heads.
An excellent style manual for science writers is [7]. Component heads identify the different components of your
paper and are not topically subordinate to each other. Examples
IV. USING THE TEMPLATE include ACKNOWLEDGMENTS and REFERENCES, and for
these, the correct style to use is “Heading 5.” Use “figure
After the text edit has been completed, the paper is ready caption” for your Figure captions, and “table head” for your
for the template. Duplicate the template file by using the Save table title. Run-in heads, such as “Abstract,” will require you to
As command, and use the naming convention prescribed by apply a style (in this case, italic) in addition to the style
your conference for the name of your paper. In this newly provided by the drop down menu to differentiate the head from
created file, highlight all of the contents and import your the text.
prepared text file. You are now ready to style your paper; use
the scroll down window on the left of the MS Word Formatting Text heads organize the topics on a relational, hierarchical
toolbar. basis. For example, the paper title is the primary text head
because all subsequent material relates and elaborates on this
A. Authors and Affiliations one topic. If there are two or more sub-topics, the next level
head (uppercase Roman numerals) should be used and,
The template is designed so that author affiliations are not
conversely, if there are not at least two sub-topics, then no
repeated each time for multiple authors of the same affiliation.
subheads should be introduced. Styles named “Heading 1,”
Please keep your affiliations as succinct as possible (for
“Heading 2,” “Heading 3,” and “Heading 4” are prescribed.
example, do not differentiate among departments of the same
organization). This template was designed for two affiliations.
C. Figures and Tables
1) For author/s of only one affiliation (Heading 3): To 1) Positioning Figures and Tables: Place figures and
change the default, adjust the template as follows. tables at the top and bottom of columns. Avoid placing them in
a) Selection (Heading 4): Highlight all author and the middle of columns. Large figures and tables may span
affiliation lines. across both columns. Figure captions should be below the
b) Change number of columns: Select the Columns icon figures; table heads should appear above the tables. Insert
from the MS Word Standard toolbar and then select “1 figures and tables after they are cited in the text. Use the
Column” from the selection palette. abbreviation “Fig. 1,” even at the beginning of a sentence.
c) Deletion: Delete the author and affiliation lines for
TABLE I. TABLE STYLES
the second affiliation.
2) For author/s of more than two affiliations: To change Table Table Column Head
Head Table column subhead Subhead Subhead
the default, adjust the template as follows.
a) Selection: Highlight all author and affiliation lines. copy More table copya
a.
b) Change number of columns: Select the “Columns” Sample of a Table footnote. (Table footnote)
icon from the MS Word Standard toolbar and then select “1 b.
Column” from the selection palette. Fig. 1. Example of a figure caption. (figure caption)
c) Highlight author and affiliation lines of affiliation 1
and copy this selection. Figure Labels: Use 8 point Times New Roman for Figure
labels. Use words rather than symbols or abbreviations when
d) Formatting: Insert one hard return immediately after writing Figure axis labels to avoid confusing the reader. As an
the last character of the last affiliation line. Then paste down example, write the quantity “Magnetization,” or
the copy of affiliation 1. Repeat as necessary for each “Magnetization, M,” not just “M.” If including units in the
additional affiliation. label, present them within parentheses. Do not label axes only
e) Reassign number of columns: Place your cursor to with units. In the example, write “Magnetization (A/m)” or
the right of the last character of the last affiliation line of an “Magnetization (A ( m(1),” not just “A/m.” Do not label axes
even numbered affiliation (e.g., if there are five affiliations, with a ratio of quantities and units. For example, write
“Temperature (K),” not “Temperature/K.”
place your cursor at end of fourth affiliation). Drag the cursor
up to highlight all of the above author and affiliation lines. Go
to Column icon and select “2 Columns”. If you have an odd ACKNOWLEDGMENT (Heading 5)
The preferred spelling of the word “acknowledgment” in the first word in a paper title, except for proper nouns and
America is without an “e” after the “g.” Avoid the stilted element symbols.
expression “one of us (R. B. G.) thanks ...”. Instead, try “R. B.
For papers published in translation journals, please give the
G. thanks...”. Put sponsor acknowledgments in the unnumbered
English citation first, followed by the original foreign-language
footnote on the first page.
citation [6].
[1] G. Eason, B. Noble, and I.N. Sneddon, “On certain integrals of
REFERENCES Lipschitz-Hankel type involving products of Bessel functions,” Phil.
The template will number citations consecutively within Trans. Roy. Soc. London, vol. A247, pp. 529-551, April 1955.
brackets [1]. The sentence punctuation follows the bracket [2]. (references)
Refer simply to the reference number, as in [3]—do not use [2] J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol.
2. Oxford: Clarendon, 1892, pp.68-73.
“Ref. [3]” or “reference [3]” except at the beginning of a
[3] I.S. Jacobs and C.P. Bean, “Fine particles, thin films and exchange
sentence: “Reference [3] was the first ...” anisotropy,” in Magnetism, vol. III, G.T. Rado and H. Suhl, Eds. New
Number footnotes separately in superscripts. Place the York: Academic, 1963, pp. 271-350.
actual footnote at the bottom of the column in which it was [4] K. Elissa, “Title of paper if known,” unpublished.
cited. Do not put footnotes in the reference list. Use letters for [5] R. Nicole, “Title of paper with only first word capitalized,” J. Name
Stand. Abbrev., in press.
table footnotes.
[6] Y. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, “Electron spectroscopy
Unless there are six authors or more give all authors’ studies on magneto-optical media and plastic substrate interface,” IEEE
names; do not use “et al.”. Papers that have not been published, Transl. J. Magn. Japan, vol. 2, pp. 740-741, August 1987 [Digests 9th
Annual Conf. Magnetics Japan, p. 301, 1982].
even if they have been submitted for publication, should be
[7] M. Young, The Technical Writer’s Handbook. Mill Valley, CA:
cited as “unpublished” [4]. Papers that have been accepted for University Science, 1989.
publication should be cited as “in press” [5]. Capitalize only
We suggest that you use a text box to insert a graphic
(which is ideally a 300 dpi resolution TIFF or EPS file with
all fonts embedded) because this method is somewhat more
stable than directly inserting a picture.
To have non-visible rules on your frame, use the
MSWord “Format” pull-down menu, select Text Box >
Colors and Lines to choose No Fill and No Line.