Sunday, 23 June 2013
Cryptography
00:56
Hi everybody :)
Tonight I will discuss a bit about cryptography. I like cryptography, cryptography is part of Process data security and makes me comfortable in data communications.
Cryptography comes from the Greek meaning cryptos confidential and graphein meaning writing. Cryptography is the science that studies the writing in secret using techniques metematika related to aspects of information security such as: validity, data integrity, and authentication data.
Cryptography destination
There are four fundamental goal of cryptography is the science which is also an aspect of information security, namely:
Confidentiality is a service used to keep the contents of the information of anyone other than who has the authority or the secret key to unlock / peeling the information has been encoded. Data integrity, is associated with preservation of data changes unauthorized. To maintain the integrity of the data, the system must have the ability to detect data manipulation by parties who are not entitled to, such as insertion, deletion, and other data pensubsitusian into the actual data.
Authentication, is related to the identification / recognition, both the unity and the information system itself. The two parties must communicate with each other to introduce themselves. Information transmitted through a channel should be authenticated authenticity, data contents, delivery time, and others.
Non-repudiation, is an attempt to prevent denial of shipment / creation of an information by the transmit / make.
I Love Cryptography :*
Thursday, 1 November 2012
Syntax PHP Pengurutan
08:02

<html>
<head>
<title>Pengurutan</title>
</head>
<body bgcolor="#FFFFFF">
<?
print "Nilai dalam array: <br>";
$Angka[0]=81;
$Angka[1]=12;
$Angka[2]=23;
$Angka[3]=45;
$Angka[4]=53;
$Angka[5]=92;
$Angka[6]=67;
$Angka[7]=77;
$Angka[8]=10;
$Angka[9]=64;
for ($i=0;$i<=9;$i+=1)
{
Print $Angka[$i]."<br>";
}
print"<br>==================<br>Pengurutan Besar-Kecil : <br>";
rsort($Angka);
for ($i=0;$i<=9;$i+=1)
{
Print_r ($Angka[$i]);
print "<br>";
}
print"<br>==================<br>Pengurutan Kecil-Besar : <br>";
sort($Angka);
for ($i=0;$i<=9;$i+=1)
{
Print_r ($Angka[$i]);
print "<br>";
}
?>
</body>
</html>
Syntax PHP Perkalian matriks 3x3
08:02
<html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$Angka[0][0]=3;
$Angka[0][1]=5;
$Angka[0][2]=6;
$Angka[1][0]=5;
$Angka[1][1]=6;
$Angka[1][2]=1;
$Angka[2][0]=5;
$Angka[2][1]=6;
$Angka[2][2]=6;
$Angka2[0][0]=2;
$Angka2[0][1]=4;
$Angka2[0][2]=1;
$Angka2[1][0]=2;
$Angka2[1][1]=7;
$Angka2[1][2]=9;
$Angka2[2][0]=2;
$Angka2[2][1]=7;
$Angka2[2][2]=6;
tampilmatriks($Angka);
print"<br><br>";
tampilmatriks($Angka2);
print"<br><br>";
$hasil=hitungkali($Angka,$Angka2);
tampilmatriks($hasil);
function tampilmatriks($A){
for ($i=0;$i<=2;$i++)
{
if ($i>0){print"<br>";}
for ($j=0;$j<=2;$j++)
{
Print " | ".$A[$i][$j]." | ";
}
} }
function hitungkali($Angka,$Angka2){
for ($i=0;$i<=2;$i++)
{
for ($j=0;$j<=2;$j++)
{
$hasil[$i][$j]= (($Angka[$i][0]*$Angka2[0][$j])+($Angka[$i][1]*$Angka2[1][$j])+($Angka[$i][2]*$Angka2[2][$j]));
}
} return $hasil;
}
?>
</body>
</html>
<head>
<title>Sans Titre</title></head>
<body bgcolor="#FFFFFF">
<?
$Angka[0][0]=3;
$Angka[0][1]=5;
$Angka[0][2]=6;
$Angka[1][0]=5;
$Angka[1][1]=6;
$Angka[1][2]=1;
$Angka[2][0]=5;
$Angka[2][1]=6;
$Angka[2][2]=6;
$Angka2[0][0]=2;
$Angka2[0][1]=4;
$Angka2[0][2]=1;
$Angka2[1][0]=2;
$Angka2[1][1]=7;
$Angka2[1][2]=9;
$Angka2[2][0]=2;
$Angka2[2][1]=7;
$Angka2[2][2]=6;
tampilmatriks($Angka);
print"<br><br>";
tampilmatriks($Angka2);
print"<br><br>";
$hasil=hitungkali($Angka,$Angka2);
tampilmatriks($hasil);
function tampilmatriks($A){
for ($i=0;$i<=2;$i++)
{
if ($i>0){print"<br>";}
for ($j=0;$j<=2;$j++)
{
Print " | ".$A[$i][$j]." | ";
}
} }
function hitungkali($Angka,$Angka2){
for ($i=0;$i<=2;$i++)
{
for ($j=0;$j<=2;$j++)
{
$hasil[$i][$j]= (($Angka[$i][0]*$Angka2[0][$j])+($Angka[$i][1]*$Angka2[1][$j])+($Angka[$i][2]*$Angka2[2][$j]));
}
} return $hasil;
}
?>
</body>
</html>
PHP syntax to calculate the average array
08:01
<html>
<head>
<title>Rata-rata</title>
</head>
<body bgcolor="#FFFFFF">
<?
print "Nilai dalam array: <br>";
$Angka[0][1]=81;
$Angka[1][1]=12;
$Angka[2][1]=23;
$Angka[3][1]=45;
$Angka[4][1]=53;
$Angka[5][1]=92;
$Angka[6][1]=67;
$Angka[7][1]=77;
$Angka[8][1]=10;
$Angka[9][1]=64;
for ($i=0;$i<=9;$i+=1)
{
Print $Angka[$i][1]."<br>";
}
print"<br>==================<br>Menghitung Rata2 : <br>";
$hasil=0;
for ($i=0;$i<=9;$i+=1)
{
$hasil=$hasil+$Angka[$i][1];
}
$rata=$hasil/10;
print "Jumlah = $hasil <br>";
print "Rata2 = $rata <br>";
?>
</body>
</html>
<head>
<title>Rata-rata</title>
</head>
<body bgcolor="#FFFFFF">
<?
print "Nilai dalam array: <br>";
$Angka[0][1]=81;
$Angka[1][1]=12;
$Angka[2][1]=23;
$Angka[3][1]=45;
$Angka[4][1]=53;
$Angka[5][1]=92;
$Angka[6][1]=67;
$Angka[7][1]=77;
$Angka[8][1]=10;
$Angka[9][1]=64;
for ($i=0;$i<=9;$i+=1)
{
Print $Angka[$i][1]."<br>";
}
print"<br>==================<br>Menghitung Rata2 : <br>";
$hasil=0;
for ($i=0;$i<=9;$i+=1)
{
$hasil=$hasil+$Angka[$i][1];
}
$rata=$hasil/10;
print "Jumlah = $hasil <br>";
print "Rata2 = $rata <br>";
?>
</body>
</html>
Syntax PHP matriks 2x2
08:00
<html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$Angka[0][0]=3;
$Angka[0][1]=5;
$Angka[1][0]=5;
$Angka[1][1]=6;
$Angka2[0][0]=2;
$Angka2[0][1]=4;
$Angka2[1][0]=2;
$Angka2[1][1]=7;
print "Nilai dalam array1: <br>";
tampil($Angka);
print "<br><br>Nilai dalam array2: <br>";
tampil($Angka2);
print "<br><br>Nilai Perkalian array1 dan array2: <br>";
$hasil=Perkalian($Angka,$Angka2);
tampil($hasil);
function tampil($A){
for ($i=0;$i<=1;$i++)
{
if ($i==1){print"<br>";}
for ($j=0;$j<=1;$j++)
{
Print " | ".$A[$i][$j]." | ";
}
}}
function Perkalian($Angka,$Angka2){
for ($i=0;$i<=1;$i++)
{
for ($j=0;$j<=1;$j++)
{
$hasil[$i][$j]= (($Angka[$i][0]*$Angka2[0][$j])+($Angka[$i][1]*$Angka2[1][$j]));
}
}return $hasil;}
?>
</body>
</html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$Angka[0][0]=3;
$Angka[0][1]=5;
$Angka[1][0]=5;
$Angka[1][1]=6;
$Angka2[0][0]=2;
$Angka2[0][1]=4;
$Angka2[1][0]=2;
$Angka2[1][1]=7;
print "Nilai dalam array1: <br>";
tampil($Angka);
print "<br><br>Nilai dalam array2: <br>";
tampil($Angka2);
print "<br><br>Nilai Perkalian array1 dan array2: <br>";
$hasil=Perkalian($Angka,$Angka2);
tampil($hasil);
function tampil($A){
for ($i=0;$i<=1;$i++)
{
if ($i==1){print"<br>";}
for ($j=0;$j<=1;$j++)
{
Print " | ".$A[$i][$j]." | ";
}
}}
function Perkalian($Angka,$Angka2){
for ($i=0;$i<=1;$i++)
{
for ($j=0;$j<=1;$j++)
{
$hasil[$i][$j]= (($Angka[$i][0]*$Angka2[0][$j])+($Angka[$i][1]*$Angka2[1][$j]));
}
}return $hasil;}
?>
</body>
</html>
Syntax PHP membuat U
07:59
<html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$warna = "blue";
tampil($warna);
function tampil($warna){
for ($i=1;$i<=5;$i++){
for ($j=1;$j<=12;$j++){
if ($i<=3){
if ($j<5){
echo "<font size=7 Color=$warna>* </font>";
}
else if ($j>8){
echo "<font size=7 Color=$warna>* </font>";
}
else {
echo "<font size=7 >   </font>";
}
}
else {
echo "<font size=7 Color=$warna>* </font>";
}
}
echo "<br>";
}
}
?>
</body>
</html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$warna = "blue";
tampil($warna);
function tampil($warna){
for ($i=1;$i<=5;$i++){
for ($j=1;$j<=12;$j++){
if ($i<=3){
if ($j<5){
echo "<font size=7 Color=$warna>* </font>";
}
else if ($j>8){
echo "<font size=7 Color=$warna>* </font>";
}
else {
echo "<font size=7 >   </font>";
}
}
else {
echo "<font size=7 Color=$warna>* </font>";
}
}
echo "<br>";
}
}
?>
</body>
</html>
Syntax PHP Faktorial
07:58
Subscribe to:
Posts (Atom)

