0% found this document useful (0 votes)
57 views

A Mutual Key Supervision Procedure For Cloud Data Distribution and File Safety Based On Hierarchy Method

This document discusses a mutual key supervision procedure for cloud data distribution and file safety based on a hierarchy method. It describes algorithms such as AES and DES that are used for encryption. It also discusses homomorphic encryption, which allows computation on encrypted data generating encrypted results matching the operations on plaintext. It includes sample user registration code to illustrate the concepts.

Uploaded by

sivagami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

A Mutual Key Supervision Procedure For Cloud Data Distribution and File Safety Based On Hierarchy Method

This document discusses a mutual key supervision procedure for cloud data distribution and file safety based on a hierarchy method. It describes algorithms such as AES and DES that are used for encryption. It also discusses homomorphic encryption, which allows computation on encrypted data generating encrypted results matching the operations on plaintext. It includes sample user registration code to illustrate the concepts.

Uploaded by

sivagami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

A Mutual Key Supervision Procedure for Cloud Data

Distribution and File Safety Based On Hierarchy Method

Algorithm

AES

AES only performs all its computations on bytes rather than bits. Hence,
AES treats the 128 bits of a plaintext block as 16 bytes. These 16 bytes are
arranged in four columns and four rows for processing as a matrix.

DES:
The Data Encryption Standard (DES) is a symmetric-key block cipher
published by the National Institute of Standards and Technology (NIST).

DES is an implementation of a Feistel Cipher. It uses 16 round Feistel


structure. The block size is 64-bit. Though, key length is 64-bit, DES has an
effective key length of 56 bits, since 8 of the 64 bits of the key are not used by
the encryption algorithm (function as check bits only).

HOMOMORPHIC:

Homomorphic is a form of encryption that allows computation on ciphertexts,


generating an encrypted result which, when decrypted, matches the result of the
operations as if they had been performed on the plaintext. The purpose of
homomorphic encryption is to allow computation on encrypted data.

APPENDIX

Sample code
UserRegister.jsp
<%@ page import="java.sql.*,java.util.*,Database.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>HASBE</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen"
title="no title" charset="utf-8" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen"
title="no title" charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"
type="text/javascript"></script>
<script src="JS/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src='JS/jquery.validationEngine.js'type="text/javascript"></script>

<!-- AJAX SUCCESS TEST FONCTION


<script>function callSuccessFunction(){alert("success executed")}
function callFailFunction(){alert("fail executed")}
</script>
-->

<script>
$(document).ready(function() {
// SUCCESS AJAX CALL, replace "success: false," by: success : function()
{ callSuccessFunction() },

$("#formID").validationEngine()

//$.validationEngine.loadValidation("#date")
//alert($("#formID").validationEngine({returnIsValid:true}))
//$.validationEngine.buildPrompt("#date","This is an example","error")
// Exterior prompt build example
// input prompt close example
//$.validationEngine.closePrompt(".formError",true)
// CLOSE ALL OPEN PROMPTS
});

// JUST AN EXAMPLE OF VALIDATIN CUSTOM FUNCTIONS :


funcCall[validate2fields]
function validate2fields(){
if($("#firstname").val() =="" || $("#lastname").val() == ""){
return true;
}else{
return false;
}
}
</script>
<style type="text/css">
#font
{
font-family:verdana;
font-size:12px;
font-color:green;
padding:3px 3px 3px 3px;
}
</style>
</head>
<body bgcolor="#006CD9">
<table align="center" width="1024" bgcolor="#FFFFFF" style="border:1px solid #d2d2d2">
<tr>
<td height="120" background="images/img01.jpg"><font class="paragraping"><font
size="+3">Secure Access Control in Cloud Computing Based on Hierarchical
Structure</font></font></td>
</tr>
</table>
<table align="center" width="1024" class="post" bgcolor="#FFFFD7" style="border:1px solid
#d2d2d2;">
<tr align="right" class="paragraping1">
<td width="520" height="30"><img src="images/home.jpg">&nbsp;&nbsp;<a
href="index.html">Home</a></td>
<td width="173"><img src='images/pass.jpg'>&nbsp;&nbsp;<a href="userregister.jsp">User
Register</a></td>
<td width="154"><img src="images/user.gif" width="24" height="24" />&nbsp;&nbsp;<a
href="userlogin.jsp">User
Login</a></td>
<td width="157"><img src="images/user.jpg" width="24" height="24" />&nbsp;&nbsp;<a
href="adminlogin.jsp">Admin
Login</a></td>
</tr>
</table>
<%
String temp=null;
temp=request.getParameter("message");
if(temp==null)
{
%>
<table align="center" width="1024" class="post" bgcolor="#FFE8FF">
<tr>
<td width="660" valign="top" bgcolor="#FFFFFF">
<div style="border:1px solid #d2d2d2">
<div align="center" class="post"><font size="+1" color="#FF0000">Server
Registration</font></div>
<form id="formID" class="formular" method="post" action="insert.jsp">
<fieldset>
<legend>User informations</legend>
<label>
<span>Desired username : </span>
<input value=""
class="validate[required,custom[noSpecialCaracters],length[0,20]]" type="text" name="user"
id="user" />
</label><br>
<label>
<span>First name (optional)</span>
<input value=""
class="validate[optional,custom[onlyLetter],length[0,100]] text-input" type="text" name="firstname"
id="firstname" />
</label><br>
<label>
<span>Last name : </span>
<input value=""
class="validate[required,custom[onlyLetter],length[0,100],funcCall[validate2fields]] text-input"
type="text" id="lastname" name="lastname" />
</label><br>
<div>
<span><font color="#FF0000">Gender :</font> <br
/></span><br>

<input class="validate[required] radio" type="radio"


name="data[User][preferedColor]" id="radio1" value="5">&nbsp;<font
color="#006600">Male</font>

<input class="validate[required] radio" type="radio"


name="data[User][preferedColor]" id="radio2" value="3"/>&nbsp;<font
color="#006600">Female</font>

</div><br>
<div>
<span><font color="#FF0000">Interested In : </font><br
/></span><br>

<input class="validate[minCheckbox[2]] checkbox"


type="checkbox" name="data[User3][preferedColor]" id="data[User3][preferedColor]"
value="5">&nbsp;<font color="#006600">File</font>

<input class="validate[minCheckbox[2]] checkbox"


type="checkbox" name="data[User3][preferedColor]" id="maxcheck2" value="3"/>&nbsp;<font
color="#006600">Image</font>

<input class="validate[minCheckbox[2]] checkbox"


type="checkbox" name="data[User3][preferedColor]" id="maxcheck3" value="9"/>&nbsp;<font
color="#006600">Text</font>
</div><br>
<label>
<span>Date : (format YYYY-MM-DD)</span>
<input value="1988-12-10"
class="validate[required,custom[date]] text-input" type="text" name="date" id="date" />
</label>
<br>
<label>
<span>Ranking Area 1:</span>
<select name="sport" class="validate[required]" id="sport"
style="font-family:verdana;" >
<option value="">Choose a Area</option>
<option value="File">File</option>
<option value="Image">Image</option>
<option value="Text">Text</option>
</select>
</label>
<br>
<label>
<span>Age : </span>
<input value=""
class="validate[required,custom[onlyNumber],length[0,3]] text-input" type="text" name="age"
id="age" />
</label>
<br>
<label>
<span>Telephone : </span>
<input value="" class="validate[required,custom[telephone]]
text-input" type="text" name="telephone" id="telephone" />
</label><br>
</fieldset>
<fieldset>
<legend>Password</legend>
<label>
<span>Password : </span>
<input value="" class="validate[required,length[6,11]] text-
input" type="password" name="password" id="password" />
</label>
<label>
<span>Confirm password : </span>
<input value=""
class="validate[required,confirm[password]] text-input" type="password" name="password2"
id="password2" />
</label>
</fieldset>
<fieldset>
<legend>Email</legend>
<label>
<span>Email address : </span>
<input value="" class="validate[required,custom[email]]
text-input" type="text" name="email" id="email" />
</label>
<label>
<span>Confirm email address : </span>
<input value="" class="validate[required,confirm[email]]
text-input" type="text" name="email2" id="email2" />
</label>
</fieldset>
<fieldset>
<legend>Comments</legend>
<label>
<span>Description : </span>

<textarea value="ced@hotmail.com"
class="validate[required,length[6,300]] text-input" name="comments" id="comments" /> </textarea>
</label>

</fieldset>
<fieldset>
<legend>Conditions</legend>
<div class="infos">Checking this box indicates that you accept terms
of use. If you do not accept these terms, do not use this website : </div>
<label>
<span class="checkbox">I accept terms of use : </span>
<input class="validate[required] checkbox" type="checkbox"
id="agree" name="agree"/>
</label>
</fieldset>
<input class="submit" type="submit" value="Registration!" style="font-family:verdana;font-
size:12px;color:red;border:1px solid green;"/>
<hr/>
</form>
</div>
<%

}
else if(temp!=null && temp.equalsIgnoreCase("success"))
{
%>
<br>

<table align="left" width="400" cellspacing="1" cellpadding="1" style="border: 1px


#A0A0A0 solid;">
<tr>
<td align="left" class="paragraping">
<font color="white" face="verdana" size="2">
Server Successfully Registred! <br>

</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
}

else if(temp!=null && temp.equalsIgnoreCase("fail"))


{
%>
<br>

<table align="left" width="400" cellspacing="1" cellpadding="1" style="border: 1px


#A0A0A0 solid;">
<tr>
<td align="left" class="paragraping">
<font color="green" face="verdana" size="2">
Server Registration Failed! <br>

</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
}
%>
</td>
<td width="345" valign="top">
<table width="353" height="279" bgcolor="#FFFFDF" class="post" align="center" style="border:1px
solid #d2d2d2">
<tr>
<td valign="top" height="20" align="center" colspan="2" background="images/bg2.jpg"
class="paragraping1">Registration</td>
</tr>
<tr class="paragraping">
<td width="48" height="39">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td><img src="images/home.jpg">&nbsp;&nbsp;<a href="index.html">Home</a></td>
</tr>
<tr class="paragraping">
<td height="41">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td><img src='images/pass.jpg'>&nbsp;&nbsp;<a href="userregister.jsp">User Register</a></td>
</tr>
<tr class="paragraping">
<td height="36">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td width="293"><img src="images/user.gif" width="25" height="25">&nbsp;&nbsp;<a
href="userlogin.jsp">User Login</a></td>
</tr>
<tr class="paragraping">
<td height="39">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td width="293"><img src="images/user.jpg" width="25" height="25">&nbsp;&nbsp;<a
href="adminlogin.jsp">Admin Login</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="1024" align="center" style="border:1px solid #d2d2d2">
<tr>
<td height="50" background="images/img01.jpg" align="center"><font class="paragraping
style1">Secure Access Control in Cloud Computing Based on Hierarchical Structure</font></td>
</tr>
</table>
</body>
</html>

UserLogin.jsp
<%@ page import="java.sql.*,java.util.*,Database.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>HASBE</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />

<script language="JavaScript">
function validation()
{
var a = document.f.email2.value;
var b = document.f.password2.value;

if(a=="")
{
alert("Please enter a valid mail Id");
document.f.email2.focus();
return false;
}
if(b=="")
{
alert("Enter your Password");
document.f.password2.focus();
return false;
}
}
</script>
<script>
var ld=(document.all);
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
if (ns4)
ld=document.loading;
else if (ns6)
ld=document.getElementById("loading").style;
else if (ie4)
ld=document.all.loading.style;
function init()
{
if(ns4){ld.visibility="hidden";}
else if (ns6||ie4) ld.display="none";
}
</script>

</head>
<body bgcolor="#306161">
<table align="center" width="1024" bgcolor="#FFFFFF" style="border:1px solid #d2d2d2">
<tr>
<td height="120" background="images/img01.jpg"><font class="paragraping"><font
size="+3">Secure Access Control in Cloud Computing Based on Hierarchical
Structure</font></font></td>
</tr>
</table>
<table align="center" width="1024" class="post" bgcolor="#FFFFD7" style="border:1px solid
#d2d2d2;">
<tr align="right" class="paragraping1">
<td width="520" height="30"><img src="images/home.jpg">&nbsp;&nbsp;<a
href="index.html">Home</a></td>
<td width="173"><img src='images/pass.jpg'>&nbsp;&nbsp;<a href="userregister.jsp">User
Register</a></td>
<td width="154"><img src="images/user.gif" width="24" height="24" />&nbsp;&nbsp;<a
href="userlogin.jsp">User Login</a></td>
<td width="157"><img src="images/user.jpg" width="24" height="24" />&nbsp;&nbsp;<a
href="adminlogin.jsp">Admin Login</a></td>
</tr>
</table>
<table align="center" width="1024" class="post" bgcolor="#DFF4FF">
<tr>
<td width="660" height="477" valign="top" bgcolor="#FFFFFF"><table align="center"
width="400" style="border:1px solid green;">
<form action="logininsert.jsp" method="get" name="f" id="f" onSubmit="return validation();">
<tr>
<td colspan="2" background="images/pattern_bg.gif" class="paragraping"
align="center">User
Login Here</td>
</tr>
<tr>
<td width="127" height="45" class="paragraping1">Email:</td>
<td width="261"><input type="text" name="email2" class="input" /></td>
</tr>
<tr>
<td height="46" class="paragraping1">Password:</td>
<td><input type="password" name="password2" class="pass" /></td>
</tr>
<tr>
<td height="41" colspan="2" align="center"><input type="submit" name="sub" value="Login"
class="submit" /></td>
</tr>
</form>
</table></td>
<td width="345" valign="top">
<table width="353" height="279" bgcolor="#FFFFDF" class="post" align="center" style="border:1px
solid #d2d2d2">
<tr>
<td valign="top" height="20" align="center" colspan="2" background="images/bg2.jpg"
class="paragraping1">Registration</td>
</tr>
<tr class="paragraping">
<td width="48" height="39">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td><img src="images/home.jpg">&nbsp;&nbsp;<a href="index.html">Home</a></td>
</tr>
<tr class="paragraping">
<td height="41">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td><img src='images/pass.jpg'>&nbsp;&nbsp;<a href="userregister.jsp">User Register</a></td>
</tr>
<tr class="paragraping">
<td height="36">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td width="293"><img src="images/user.gif" width="25" height="25">&nbsp;&nbsp;<a
href="userlogin.jsp">User Login</a></td>
</tr>
<tr class="paragraping">
<td height="39">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/img04.gif"></td>
<td width="293"><img src="images/user.jpg" width="25" height="25">&nbsp;&nbsp;<a
href="adminlogin.jsp">Admin Login</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="1024" align="center" style="border:1px solid #d2d2d2">
<tr>
<td height="50" background="images/img01.jpg" align="center"><font class="paragraping
style1">Secure Access Control in Cloud Computing Based on Hierarchical Structure</font></td>
</tr>
</table>
</body>
</html>

SCREEN SHOTS

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy