Showing posts with label concepts. Show all posts
Showing posts with label concepts. Show all posts

Apr 28, 2014

What are blog / website cookies


What are blog/ website cookies frontNowadays, A lot of websites display a message saying, "By browsing our website you agree to our cookie policy.” Many of my friends are baffled by this sentence. They often ask what are cookies and what do they do?


First it is important to note that a cookie, contrary to what the name suggests is just a text message that a Web server sends to a Web Browser. To understand why we need a cookie, I think we need an example.


The Example

Keeping cookie in mind let us have an example of an ice-cream vendor (mmm.. desert). The vendor has a shop where every day scores of people visit and buy ice-cream from him. His store has just about every flavor under the sun.

Little Sam and Susie have been coming to the store for the last 2 weeks. Their mother had once handed out a list to the vendor about the things Sam has allergies to. Sam can eat only chocolate with sprinkles and Susie likes plain strawberry. Whenever they approach the store, without asking, the vendor begins to prepare the ice-cream cone beforehand.

Why? After seeing them at the store for so many days, he knows their likes and dislikes. He knows that Susie will not eat anything other than strawberries and Sam will not have anything without sprinkles. So he modifies any order given to him likewise. This way Sam and Susie always get what they like.

The Relation

In our story, the recipe given by their mother is a cookie (Not an actual cookie but the internet one). The cookie does the important job of giving information of the preference of a particular browser, thereby helping it display content that is relevant to the visitors. The vendor would never give Sam anything listed on the paper that his mother gave. Hence Sam and Susie will always be happy and revisit him every day.
website cookies explained

Why do Websites use cookies?

The Design of a website is important in terms of visitor experience. Your blog is adorned with awesome layouts and dynamic and slider templates with exquisite patterns (Chosen in consultation with a design professional). But in the end, what matters is "Does the User likes it?". Similarly, in the internet world, preferences and personalization often matters. When a mail that you receive has your name on it, you are bound by curiosity. When a commerce website offers you range on cheap shoes you are delighted because that was what you were searching few hours ago. 

In short, cookies help you get a really personalized experience from a generic website and that is what gives you an edge over your competitors. It might even reduce your bounce rate (though bounce rate are not that important)or keep visitors longer at your website leading to higher revenue.

Know the cookies in your computer

Even you can check about the cookies stored in your computer with some simple steps.

Cookies in Chrome


Cookies in Chrome


Types of Cookies

Now that the concept is clear to you, we shall go forward and understand what the differenct types of cookies are. Essentially there are just two types of cookies,

Session Cookie (Temporary one) 

This one gets deleted once the browser is closed. They cannot collect information from your computer and is stored in temporary memory.

The persistent cookie (The permanent one) 

It is stored on your hard drive and stays there until you delete them manually. (We shall discuss how to delete cookies manually)

The Good and Bad Cookies
Hope you've understood the concept of Cookies.
If you have any more questions, Drop it in as comments, we'll update.

Related Memes




This answered 
What are blog/website cookies Mohitchar

Apr 7, 2014

7 Ways to check if a guest post is bad

7 Ways to check if a guest post is bad Front
Matt Cutts in his recent post took out all his artillery and beat down on Guest posts warning or so to say cautioning publishers and webmasters to stop using Guest posts as a link building exercise (Though he Himself used it). The Article was a real marvel but what it lacked were clear instructions. 


He reminded web owners that the websites with high quality guest articles would be exempt. But, there is no tangibility towards High Quality. 

What if the article is of better quality or of good quality? So here are some instructions for webmasters to determine if they should allow a guest post on their blog or not.

FirstTight Filter

First enforce a really tight filter on which guest posts to accept. 
In short publish only the best of Guest posts. When you target the best, you might not come under Matt's Purview.

SecondThink and Label

Wordstream.com came up with a really weird strategy, asking publishers to not label Guest posts as "Guest Post". Empirical evidence for its working is not available but logically, it still makes sense.

ThirdArticle or the Link

Any Webmaster aiming to be one of the top players of the internet world knows that External links and Internal Links play a pivotal role in determining the PageRank of the website
So site owners write guest posts for high page rank websites. Not for the information but for the links. But does the article you receive rely on making relationships or bringing back traffic? 

FourthBall-park a topic, 


If yours is not a personal blog, it is understood that the articles posted would be pertaining to a single topic or revolve around a topic. If tomorrow you receive a mail saying how awesome your site is or how amazed they are with your blog and would like to add something to it, ask them what they are writing on. If it’s a topic away from yours, decline respectfully.

FifthCtrl+C, 


This one is an understood one, If someone offers you some text for publication you would first check if it has not been plagiarized (You know there are some pretty good blogs around there). Simple steps to check are taking a snippet and Google it. For a more detailed method you can check out this Duplicate Content tool.

SixthCheck the content, 


The information sent by them should be synonymous with your website's content. It should cater to Google's Quality Guidelines. If you use blogger, it should be conducive to Blogger's content policy. All the more it should not try to pull visitors away from your website (Might be selfish). It should not promote itself; rather it should just provide quality information. Grammatical and semantic errors should also be checked.

SeventhThe Thumb Rule,

One comment at Matt's Blog always inspires me. It said, "Before you agree to post some one's article on your blog, try and answer this question, Was the article written for your readers or for a search engine". I feel this point will always help you when you're confused.

This was all about.
7 Ways to check if a guest post is bad MohitChar

Mar 17, 2014

Do Pages with questions as title receive more clicks (Part 2)

Do Pages with questions as title receive more clicks (Part 2)
This article is the complete study conducted by codemakit Website Research. If you feel that the contents are too technical for you, you may want to read the simplified summary presented at part I of the article first. Based on the data obtained from 190 Web Pages and their page views, the following observations were found.

The data available were the number of views, and the date of publication of page. Since the pages were linearly published (i.e. one page after another), the difference of the number of days were found and Cumulative number of days were found. Cumulative number of days helped in determining the number of days a webpage was present on the website as published. As a page's page views and the number of published days are directly proportional. 

Do Pages with questions as title receive more headline

The Data Set

The complete Data Set containing information in pdf for all the blog posts is available for perusal here. To probe this even further, Consider Page A has 200 page views and Page B has 20. This cannot be called as the complete indicator of the actual worth of the page, As Page A might have been published a year ago and Page B just a week ago. Hence a balanced base is needed to determine whether a webpage is performing well or not.

V/D ratio was found out. The V/D ratio is the ratio of the number of page views per unit cumulative day. The ratio is a perfect indicator of the number of how well did the page do in terms of garnering visitors. Using V/D ratio the index for page A would be (200 page views/365 days) and for page B as (20 page views /7 days). The ratio for Page A comes to be 0.548 and for Page B comes to be 2.85. The page A which at first looked better in comparison to Page B, now doesn't look worthy at all. Hence a normalized base would help in determining the true worth of a page.

Do Pages with questions as title receive more headline Large Graph

Types of Webpages

The complete analysis was done using V/D ratio. Graphically, V/D = 0.2 was obtained as the value to be used for determining if a webpage performed well or not. Complete Data was divided into three parts 

1. The lesser ones,
Now all Web Pages which had a V/D ratio less than 0.2 can be safely said to perform worse than its counterparts. Hence all Web Pages with a V/D ratio less than 0.2 come under its purview. There were 53 lesser ones.

2. The Greater Ones
Just like the name suggests, all the Web Pages with a V/D ratio more than 0.2 were called as the greater ones or the ones that performed better. There were 123 Greater ones.

3. The questions
Each webpage which contains a question in its title text is a question type webpage. There existed 63 question type Web Pages on the said website.

How did we arrive at V/D=0.2 ?

Note. It must first be understood how the value of 0.2 was obtained. The complete analysis being a really simple one, It was thought that the sample could be plotted on the graph based on its frequency. The graph was then created taking V/D ratio on the abscissa and the frequency at ordinate. 

Do Pages with questions as title receive more headline Graph 1

The resultant graph was a sharp bell shaped curve. The sharpness was due to excessive variations among the sample group with different number of Web Pages having inordinate differences in their V/D ratios. Hence, The Graph was then magnified at its peak in the hopes of arriving at the dividing value. This graphically came near 0.2.

Do Pages with questions as title receive more headline Graph 2

Do Pages with questions as title receive more headline Graph 3

The Observations

Summarily, It was found that, The Webpages with questions as their title text that performed poorly was 21.21%. However, The Webpages/Articles/Blog Post with questions as their title text which performed poorly was just 21.21%. In Short, if you put your title text as a question for any webpage, you have 50% more chances of making it more famous. 

Greater Ones Lesser Ones
Total Number of WebPages 123 66
Number of Webpages with Questions 39 14
Percentage of Webpages with questions 31.71 21.21

Disclaimer for the study, 

It is however pertinent to note that, the study took 197 webpages and had to exclude some to maintain the sample's integrity. The study was conducted on a single type of website with a single Page Rank and hence same results cannot be expected for any other.

The study could be extended to cover other types of websites too. These could be analysed and results displayed. Also, one must understand that the criterion for determining if a webpage performed good or poor, was created based on the overall performance of the website itself. Hence, there exists a need for determining independent criteria for websites of different types, page ranks and visitor interaction.

Also, you can bring people to your webpage, but making them stay there is wholly dependent on how you present the content. Bounce rate isn't too irrelevant you know.

Is the Study too technical for you?

For a much simpler version of this study you can visit the part I of the series

If you still have doubts or would like to share your own story, comment below, we'll be happy to answer.

This was all about,
Do pages with questions as title receive more clicks MohitChar

Do Pages with questions as title receive more clicks (Part 1)

There exists a very contended view that, If you write an article with a question as its headline or title, it will receive more clicks and the webpage as a whole would be more successful. 

codemakit in the past has published material on improving the readership of any blog like, using specific publishing schedule, controlling Spam, creating apps, organising your blog content etc.

Though some are of the opinion that it plays no part in determining the popularity of an article. However, Online marketing experts disagree, Several studies claim an increase of 100% (Though there are several more probable methods of doubling your website traffic) traffic to the website, i.e. "Double Your Traffic!", some claim a modest 10% increase.

The truth isn't inaccessible, its just hidden. Gregory Ciotti, who oversees marketing at Help Scout and is the founder at Sparring Mind, believes, there exists an information Gap Theory based on a paper by George Loewenstein, on "The psychology of Curiosity: A Review and Reinterpretation

The Online marketing geniuses often claim that once a person glances on the headline, She/he frames their question as per the one displayed. For example, You need to know how to plant a eucalyptus tree in your backyard. You put the search term as "Plant a big eucalyptus tree". Suppose you stumble upon the headline, "How do you plant a large tree", though the queries are different enough, you must understand that the person finds it irresistible not to merge the two and experience that Aha! moment where you feel "That is just the damn thing I was searching for! How cool is that, I must check this out!"

Codemakit Website Research performed a study and analyzed Web Pages to answer this question. Since the study can prove to be too technical for some, It has been included in the second part of the article.

In the study, We took 197 Web Pages and collected just two information from them, Their number of Page views and the number of days they had been public on the web. We divided the complete set into three parts. 
  1. One was the Greater ones or the ones that performed really great. 
  2. Second was the lesser ones, i.e. those that did not perform up to the mark. 
  3. Third set consisted of those which contained questions as their headlines. 

You can take a look at part II of the article if you want to know how did we divide the articles/blog posts into good and bad (complete Data Set containing information in pdf format for is available for perusal here). Once that was achieved, We analyzed and are now presenting our findings. 



Read carefully, The Web Pages which performed really good had 31% of them as questions. However, The ones that performed really bad had 21% as questions. In short your webpage has 50% more chances of performing good if it has a question as its title/ headline. 

For more information on the study you can visit the part II of the series. If you still have doubts or would like to share your own story, comment below, we'll be happy to answer.

But, Don't you wanna know how did we arrive at this conclusion?

Check out the second part of the series

Also, tell us how much better did your website perform?

This was all about,

Mar 3, 2014

How did a sentence reduce Spam comments by half

How did a sentence reduce comments by half (Controlling Spam)
Comments are by far the most important and the most useful social media engagement technique used in blogs. A comment has the ability to spark a discussion and give a new meaning altogether to the article. 

A comment can motivate the author and can also act as a critic thereby controlling the quality of the articles proceeding. But there is a downside to commenting scenario. Most blogs do not allow anonymous commenting; this is because of the extra time and energy they will have to spend in moderating the comments if they allow. So they ask the reader to login or register with the website to post a comment. Or they would ask the visitor to leave their email id, which is again no cool for the reader. A casual reader who wants to show his appreciation for the exemplary work done by the author, cannot do so if he/she is pestered by the site before leaving a comment. True comment is always extempore. 

An ideal situation is that the reader goes through the complete article and reaches the end. After reading the article he is tempted to post a comment. He just writes it and posts it. The comment is published and the user is happy. Such is the case with anonymous posting.

The Case Study,

The following is a case study on how a simple method was enough to stop spammers and give more readers to the blog as a side effect.

Codemakit had some problems in the past regarding lower comments. As is evident, low or no comments give ‘low quality’ jibes to the readers. So to increase the comments and increase the social interaction at the website, codemakit started anonymous comment. In short anyone who knew how to read and write could write just about anything in the comment box.

The First Day
The first day, codemakit received 24 comments all of which were basically spam. The number reached 57 on the third day and was not stopping. The only thing standing between a spam comment and unsuspecting readers was the blogger’s comment filter which did its best in keeping spammers at bay.

It was sufficiently clear, why websites do not keep anonymous comments. It was becoming simply impossible to keep up with such large numbers. The process of comment moderation took more than an hour daily, which ate up the time required in the maintenance of the website. Each and every comment had to be read properly before coming to any conclusion.

Some were straightaway spam which could not be filtered by blogger’s systems whereas some were cloaked up pretty good and some were even funny. But there was a plus side, the true or legitimate comments increased to five on the third day.

The Solution

As the days crept on, it was becoming increasingly difficult to moderate comments in such huge numbers. From SEO’s perspective, if a particular article has a PageRank of suppose 3, then this will be distributed to each and every link hosted on the page. So in short codemakit was leaking PageRank to the hyperlinks in the comments. 

Controlling Spam codemakit Study Solution 1One solution to the SEO problem was to hire personnel for filtering spam, which was expensive. Also you cannot post an ad on a newspaper or a website saying, "Wanted, an enthusiastic and intelligent individual for sorting spam at my petty little blog! I'll pay you in installments :-)"

Controlling Spam codemakit Study Solution 2
Solution Two, Another solution was to hire a freelancer, which was too convoluted solution for such a simple problem. The blog at that time was a one person project which obviously didn't need another person just to sort spams.

Controlling Spam codemakit Study Solution 3Solution Three, Last solution was attaching a nofollow attribute to the complete comments section, thereby taking off the load of moderating by the author


The third solution was finally implemented. So the SEO problem was resolved (i.e. the rankings of the website will not be affected due to the low quality links in the comments section. But another problem on the softer side was too large to be overlooked. What will happen to the image of the blog when readers see fifteen to twenty comments, most of which are spam? This will affect the image of webmaster and the blog. 

The Process

So the second problem which floated was that comment moderation was still needed. One unique solution was to display a custom message instead of the default ‘Thanks for your comments’, another message was planned thinking if spammers are warned that their tactics will not work here, may be they'll stop.

‘Spammers Kindly remember, any hyperlink in the comments will not be indexed by search Engines because of NoFollow attribute. http://www.codemakit.com/2013/01/add-nofollow-to-your-blog-comments.html


The message was specially crafted keeping in mind the mentality of spammers. Since blogger does not allow any hyperlink in the message section.

The URL of the methodology of adding NoFollow attribute was also added. Another important thing included in the particular webpage was a proof that Nofollow was added to the comments section with the help of a Firefox add-on.

The Results

Controlling Spam codemakit Study Week TableIt was thought that spammers who once add a spam comment would be greeted with the particular message and this would deter them from adding any more comments. But, the particular solution did more than what was expected.

The comments reduced to just the legitimate ones and since the message was displayed, there was not a single spam comment on the webpage. The Number of true or legitimate comments actually increased and so did the total number of comments.

Another side effect of the message being displayed was an unusual increase in the visitors of the website. It is not wrong to say that nearly each and every visitor of the NoFollow Webpage within 3 to 4 days were all spammers. The webpage which received 200 visitors in 15 days received 2300 visitors in just 2 days.

Controlling Spam codemakit Study

The following are the screenshots of the anomalies observed on the site.

Controlling Spam codemakit Study using MapThe particular article on adding a NoFollow attribute became famous overnight, garnering 3075 followers in just 3 days.

It even surpassed the previous most read articles like remove youtube logo from embedded videos and Animated Flash Tag Cloud or even the article on Faults in your SEO and how to rectify it.


Controlling Spam codemakit Study Graph

The peak observed was pretty amazing as the site had never encountered such amount of traffic before. The following is a screenshot from blogger dashboard.



So in a nutshell the complete procedure did more good than expected and can be used by webmasters for their respective websites.



 Try this and post your anonymous comments. I'm sure we'll be thrilled to receive your results.

This was all about, 
Controlling Spam codemakit Study MohitChar

Jan 13, 2014

Why Online Forms? Best Online Form Creation websites (A Study : Part I)

Why Online Forms? Best Online Form Creation websites (A Study : Part I)
Forms are tools by which any web owner/developer/designer wants to communicate with its intended readers. So having a form on your site is as important as having a label system or a subscribe button (Which itself is a form). 

codemakit ran an article on "How to create easy online Forms with Google Forms?" when the service was first Launched. By far google is one of the most easiest and most economic ways of creating an online form. But, free services are bound to have drawbacks and lower fucntionalities. And so comes the need for other form creating websites which shall be discussed in the next article. But first we must understand why do webmasters need online forms? Why aren't they happy with their websites? What more are they trying to achieve? Consider the following examples.

Times of India Political Polls1. You need to determine which photo or image would look great on your website. You put up a form collecting votes by showing both the pictures together and asking the users which one do you like. You put up a voting form on current topics to attract visitors showing interaction.


2. You need to put up a survey for your visitors as you need to know what age group do they belong to, what do they like, what don't they like. So that using these questions you could mold your website content to suit your readers. Result? increased visitors who are content with your content. No need for SEO, keyword study or best content practices.

3. You need a form which collects email addresses and related information from users in exchange for premium information.

Financial Times Tax Calculator4. You need forms so that people may comment on your articles which they found interesting. More comments would surely attract more comments (even the spam ones).

5. You might have a plethora of content and would like to share the same with other users, but the website is too large for them to find just be clicking.So you create a form which takes inputs from the users and displays a list of those pictures/videos/content which matches the most.

6. You want some extra functionality added to your website making it more interactive and user friendly, by adding a tool/calculator. E.g. Financial calculator, bond returns calculator (A really great example is tabelizer which itself is a tool for converting xl data sheets into html code)

7. There are yet smaller forms available with just one or two fields like, the subscribe us form, change language form (Which has been incorporated on codemakit since 2011 or change currency form etc.

Related Articles, Create an Auto-Responding Google Form

This answered your question,

Dec 30, 2013

Why is it wrong to start a "popular at the moment" blog?

Why is it wrong to start a "popular at the moment" blog?
Bloggers are of many types, Some are the argumentative type and some are stickers, but recently one more type of blogger has crept up. The opportunist Blogger. Such people are not a rare sight on the web nowadays. 

Their creations are not hard to miss. Even you might have seen some of their creations. Okay lets see, a blog on the recent chess tournament, or on certain hot political topics, or on current trends, infamous actors, musicians, or famous personalities, award functions, high profile parties and even viral videos.

The opportunist blogger seems to find the most intriguing and the most happening idea at present and converts it into a highly talked about website with a lot of agglomerated content from different sources. One more thing worth noting about opportunist blogger is that their websites might, at one point of time, be swarming with visitors, filled with seemingly unending comments and discussions. Little do people know the PERILS OF BEING AN OPPORTUNISTIC BLOGGER!!

Interest over time for query "Miley Cyrus"

The Process

Let us first see the process of Opportunistic blogging. A person (The opportunistic Blogger) sees a trending topic. Lots of users discuss about the topic and forums are filled up with discussions on why one side is better than the other. The blogger takes up the topic, Finds and collects as much information as he/she could and spends the rest of the day churning the information.He then spends the rest of two days preparing the blog and publishing the information so produced. Then it is just simple work of maintaining the blog with small pieces of gossip that he finds in the foreseeable future. He does not care for a blog posting schedule, or what would happen if he stops the posts, just because he/she has the content, he thinks he can enslave the search engines and control the flow of visitors.

The Brighter Side

Let us see the bright side of Opportunistic Blogging, The person receives a lot of visitors during the time the trend is hot. The sudden surge of visitors often surpass the number of visitors a well to do blog manages to sustain. The blog becomes one of the most talked topics on the web (Of-course after the phenomenon it was made on). The blog manages to gain visitors in six digits with bounce rate as low as 25%. It garners back-links from the most respectable of websites and gains the trust of most cautious of webmasters.

Interest over time for query "World Chess Champion"

After the advantages, I bet you must be feeling nauseated and green with envy, I felt it myself as we spent hours working on topics churning concepts, creating beautiful and marketable designs, but he takes all the credit? Why? 

The Dark Side

Webmasters, control your heat, cause here comes a string of disadvantages. A popular at the moment blog as the name suggests, is just popular at the moment. There comes a time when the water dries off and the merriment comes to an end. Since the popularity has been diminished why would someone in their right mind would want to come at such a blog.


Interest over time for query "The Avengers"

In simple words, the blog would have lost nearly all his visitors. Bounce rates would first increase of-course (As people would come to revive a dying trend but would return due to lack of content) but then the values wouldn't matter. Pages per visit would decrease to 1 or zero and then the blog (after a long struggle) could have said to finally rest in peace. What use would such a blog cater, when the fame is short-lived? 

"What is glory if not eternal?"


The missed call

How ever there are moments in internet history when a blogger does not have the time to capitalize on the situation. This situation can be known as the "missed peak" situation. This is because by the time, blog is prepared and made, peak has ready passed, public interest has already reduced. It is worth noting that sometimes blogger do gain some advantage from the peak by forecasting the peak in advance, but that is not common and hence cannot be replicated by most.

Consider the case of a very popular Indian Song "Kolaveri Di", The song was released two weeks prior to its actual release and became a hit instantly. Take a look at the graph from Google trends. It is conspicuous from the graph that it was next to impossible for a regular blogger to capitalize on the situation. A potato blogger however, would obviously miss the peak.

Google Trends for Video "Kolaveri Di"

So, when should you start a popular at the moment blog? When you are looking at a trend which you know would die. When you are looking for some quick money and quicker fame. Now, when you decide and know the risks, you can go an buy a domain for 3 months, 6 if you're optimistic and just crack-on.

Top Image Credit VR Marketing Blog

This told you about,
Why is it wrong to start a "popular at the moment" blog? MohitChar

Dec 23, 2013

How are passwords stored on websites? The Basics

How are passwords stored on websites? The Basics Front imageEver wondered how are messages transferred through email clients. What does gmail actually mean when it says your mail is encrypted before sending to another person. Or what does adobe mean when it says, "Your document is encrypted, Enter Password to continue.."

Data encryption has long been in use since the advent of data storage and transmission. It has been in use for website certifications, Storing your passwords and usernames etc. You will have to first understand how you need to protect yourself from divulging or giving away your passwords before understanding how passwords are stored on websites. A recent case of Adobe password leak is sufficient to say that encryption is one of the most important things which websites must remember.

The following article dwelves into the basics of encryption, Further posts might include a more deeper understanding. Lets start with the what and how of data security and privacy. 

Before we proceed..

For newbies, You must know this to go further, Input goes through a function (process) and comes out as an output. This output is called hash code. Using this analogy, Hash Code is the output generated by a Hash Function. This function varies and can produce different outputs based on the content of the message. The output is of a fixed length always and hence the code is a highly effective form of storing and transferring data, used in huge number of applications. There are many different types of Hash function methods available. 

An interesting discussion on data encryption would be for pretty good privacy method. Let us understand this based on an example. Let us assume a small string of letters for our convenience. Lets start with "sheep". Now this is the message we need to encrypt and send to a friend. 

The Pretty Good Privacy Method (PGP)

The Three steps to Encryption

  1. First the string "Sheep" is used to create a key, Let us suppose the key created by string "sheep" is 22RX (pretty cool digits, huh!). This key will be used to encrypt the message (You Know, this key will determine which hashing function will be used).
  2. Now using thie key, the string is encrypted. Let us suppose the key led to the simplest of encryption, i.e. converting into a hexadecimal value. (We use decimal values on day to day basis, i.e. 0 to 9 (Base 10). Hexadecimal values  on the other-hand is present in base 16 and ranges from 0 to E. Converting any text to hexadecimal is fairly easy to do. The converted hexadecimal value for Sheep is "7368656570". Now this was converted based on the key "22RX". Now, second step is encryption of the key itself. The encrypted value of 22RX is "32325258".  
  3. Third stage is concatenation of both key and the message. So, the completed encrypted message would be 323252587368656570 (Assuming key comes first and not mashed into the message). A mashed message might however look like this, "372336252865658570", Which as you can see is much more difficult to decrypt.
ENCRYPTION USING PRETTY GOOD PRIVACY (PGP)

The above flowchart would help you understand the encryption using PGP method without mashing.

ENCRYPTION USING PRETTY GOOD PRIVACY (PGP) MASHED

The above flowchart would help you understand the encryption using PGP method without mashing.

One Step to Decryption

  1. The decryption process is similar too. The message "323252587368656570" is received, the encrypted key is separated, This key is then decrypted and the value obtained is "22RX" now this key is used to decrypt the original message left after removing the key, i.e. "7368656570", After encryption this would be "sheep". This is how your friend will receive the message and privacy will be maintained between the two. Symantec acquired PGP on June 7, 2010. 
DECRYPTION USING PRETTY GOOD PRIVACY (PGP)

The above flowchart would help you understand the decryption process using PGP method.


Simpler Method

with a plethora of Hashing algorithm available, it might be really difficult to determine which algorithm should be used. Hsould you use SHA1 or SHA233? To avoid such mess, you can use your own key to be used for encryption and decryption. Let us go with the "sheep" again. This time I use a key 31, Suppose the function this key uses first interchanges the odd and even digits from the right, i.e. from "sheep" to "sehpe".

ENCRYPTION USING SIMPLE METHOD


Then it is converted into hexadecimal values i.e. "sehpe" becomes "7365687065". Remember, no key is added to the string. So the message's reciever is dependent on you for the key. You send the encrypted value "7365687065" to him and contact him for the key. When your friend gets the key, he/she can very well use it to decrypt the message to get "sheep".

DECRYPTION USING SIMPLE METHOD

This methodology proves to be better than the previous method discussed. This is because, If one gets your message encryped using 'pretty good encryption' or pgp, he/she can spend hours/days/months on cracking the code but eventually, the hacker will know the contents of the message. However consider the case when a hacker intercepts a message encrypted using second methodology, It might be centuries before he/she could break the code without knowing the key used between you and your friend.

Secure Hash Algorithm

Lastly, one method, which is quite popular nowadaysis the Secure Hash Algorithm (SHA), which is a simple yet highly effective way of storing passwords, used by websites in the present. A simple explanation would be that it takes a string of characters (including numbers alphabets and special characters) and converts them into a code of a fixed size

The size depends on the alorithm used. (There are several types of SHAs used, SHA0, SHA1 etc. Secure Hash Algorithm follows a very simple algorithm (in computer's perspective ofcourse), Which will be explained later. There are many different functions too, which can be used to encrypt strings using hash tables, Geometric hashing etc. which  of-course does not come into the purview of "The Basics"

This explained (in brief) about
How are passwords stored on websites? The Basics Mohitchar