- on 10:12 - 22 comments
- on 21:15 - 38 comments
AES (Advanced Encryption Standard), which is the best unbreakable encryption algorithm. Most widely used encryption standard.
We gonna learn AES complete from beginning.
Part 1: The birth of AES algorithm
Hope you enjoyed learning the AES history. We are yet remaining with further Parts with the actual working behind the AES algorithm. Stay back and awaited for next part , till then tada. :)
Credits : Jeff moser
Whether you like or not , your Internet activities and other telecommunication systems are being monitored every time you being online or use. Who are those spying me ??
Yes exactly, its National Security Agency (NSA) whose behind this privacy theft.
The NSA is an US intelligence agency responsible for monitoring, collection, decoding and analysis of data and information for foreign intelligence. NSA has been tied up with large gaints like Google, Microsoft, IBM, Verizon and Sprint.
Edward Snowden, an analyst/hacker worked with NSA (earning $200k/year) exposed the secrets of NSA privacy leak of 1.7 billion documents and phone calls.
He changed the world thinking minds regarding Privacy.
Here's the few leaks where NSA spies on us.
About Array in PHP
Like any other programming languages or web languages, array plays an important role in storing many data.
Storing single array elements in PHP in as any normal languages.
Syntax : array () ;
But to store many array within an array, there are Multidimensional Arrays. PHP have the Array of Array concept.
Syntax: array (array());
Array in Arrays in PHP to store database values.
Well this post seems to be simple. Yes , i had an issue with storing the values in multidimensional arrays, but there haven't been any proper post till yet, of actual way of storing and dynamic looping used for storing data.
So lets start,
I want to store watches database values. For each watch there are 5 parameters (coloumns).
First I will extract the data from database using select query
$res = mysql_query("select * from watches ") or die(mysql_error());
Next, we should initialize array of array for storing data
$wat = array(array());
Now, below is the simple snippet to dynamically store values in that $wat array.
while($row = mysql_fetch_array($res))
$wat[$i][$j++] = $row['brand'];
$wat[$i][$j++] = $row['modelname'];
$wat[$i][$j++] = $row['price'];
$wat[$i][$j++] = $row['gender'];
$wat[$i][$j++] = $row['movement'];
Now if we want to display all the contents of data in that array, we can do something like this.
for($i=0 ; $i<$rows ; $i++)
for($j=0 ; $j< $columns; $j++)
So we had store and displayed the data from the database successfully.
If you liked the post, do share and like us at AnonHackSociety