Question

In: Computer Science

Explain how you can secure passwords and other sensitive data on a website. Provide code snippets...

Explain how you can secure passwords and other sensitive data on a website. Provide code snippets to explain your approach. Your answer can be based on the use of PHP/MySQL or ASP.NET/SQL based solution. Explain how online advertisements will be stored and served.

Solutions

Expert Solution

Solution:

Here are some tips by which you can save your password and other case sensetive data:

1. Encrypt your data :-Data encryption isn't just for technology geeks; modern tools make it possible for anyone to encrypt emails and other information. "Encryption used to be the sole province of geeks and mathematicians, but a lot has changed in recent years. In particular, various publicly available tools have taken the rocket science out of encrypting (and decrypting) email and files. GPG for Mail, for example, is an open source plug-in for the Apple Mail program that makes it easy to encrypt, decrypt, sign and verify emails using the OpenPGP standard. And for protecting files, newer versions of Apple's OS X operating system come with FileVault, a program that encrypts the hard drive of a computer. Those running Microsoft Windows have a similar program. This software will scramble your data, but won't protect you from government authorities demanding your encryption key under the Regulation of Investigatory Powers Act (2000), which is why some aficionados recommend TrueCrypt, a program with some very interesting facilities,

2:Backup your data:-One of the most basic, yet often overlooked, data protection tips is backing up your data. Basically, this creates a duplicate copy of your data so that if a device is lost, stolen, or compromised, you don't also lose your important information.

Code:-

1:Use validations:

if(filter_var($address, FILTER_VALIDATE_EMAIL)){

echo "Email is valid.";

} else {

echo "Not valid.";

}

2:Sanitization:

//Remove all characters from the email except letters, digits and !#$%&'*+-=?^_`{|}~@.[]

   echo filter_var($dirtyAddress, FILTER_SANITIZE_EMAIL);

3:Use Escaping:

<?php

//Do some stuff that makes sure it's time to write data to the browser

?>

Thanks for your order. Please visit us again. You ordered <?php echo esc_html($productName); ?>.

Ad Servers:-

Ad servers can be used by publishers (known as first-party ad servers) and advertisers (known as third-party ad servers).

While first-party and third-party ad servers are essentially the same technology, they are used by publishers and advertisers for slightly different reasons

First-Party Ad Servers

First-party ad servers allow publishers to manage ad slots on their websites and display ads that have been sold directly to advertisers via direct campaigns.

In the event that no direct campaigns are available, first-party ad servers will act as a management platform helping to decide which ad codes (e.g. those from a third-party ad server, SSP, or ad network) to serve in their ad slots.

A first-party ad server is responsible for targeting, i.e. making decisions about which ads to display on a website based on nuanced targeting parameters, serving them, and collecting and reporting the data (such as impressions, clicks etc.)

Additionally, they are used for inventory forecasting — i.e. how much inventory and of what type the publisher will have available for sale in the future based on the current campaigns & traffic projections.

Third-Party Ad Servers

By using ad servers, advertisers can easily track their advertising campaigns. An advertiser’s ad server ad tag is loaded by the first-party ad server, so its functionality is limited compared to first-party servers. It is mostly used only to collect campaign data and verify certain metrics, such as impressions and clicks.

Third-party ad servers can also be used for some creative optimizations – e.g. the advertiser can decide to change the creative used in a campaign or run a series of A/B tests of the creative, but the targeting itself is determined on the first-party ad server side.

The primary difference is that a third-party ad server is used by the advertisers to aggregate all the campaign information (reporting, audience) across all publishers, ad networks & other platforms the campaign runs on, and serves as an auditing tool to measure and verify whether the impressions were actually delivered properly. Publishers and advertisers, for various reasons, may report different numbers, but certain degree of discrepancy is considered normal. Third-party ad servers also offer advertisers ownership and control of the collected data (information about the audience).


Related Solutions

(a) If you have both sensitive and non-sensitive data, how will you achieve precision in terms...
(a) If you have both sensitive and non-sensitive data, how will you achieve precision in terms of disclosure? (b) In the context of Cloud Computing Security, give an example of a SAS product and briefly explain it. (c) As a client, what solution will you implement if your cloud service provider does not offer TNO. In that particular implementation, how are two levels of encryption used? What is the additional advantage of this kind of implementation?
Explain how you can use social media to test you website?
Explain how you can use social media to test you website?
Explain how Master Data Services (MDS) and Active Directory (AD) are utilized to secure data for...
Explain how Master Data Services (MDS) and Active Directory (AD) are utilized to secure data for an organization. Discuss whether or not MDS can be used without AD or if it is a prerequisite for MDS.
How would copyright affect your ability to "cheat" by looking up snippets of code on stack...
How would copyright affect your ability to "cheat" by looking up snippets of code on stack overflow
Can you provide java code for a program that prompts the user by asking "How many...
Can you provide java code for a program that prompts the user by asking "How many one mile races have you ran?". After the user inputs how many one mile races have they run it then prompts the user to input how many seconds it took for them to finish each race. So for example, if the user ran 6 races then the user will have to input 6 race times. Is there a way when you prompt the user...
Question 2. Explain preprocessor directives in C++. Describe Error and pragma directives and write code snippets....
Question 2. Explain preprocessor directives in C++. Describe Error and pragma directives and write code snippets. Describe define, and undef, directives. Write the code which shows if constant “VALUE” is not defined then define it and replace its value to 5 on runtime. Display the value of x. int x = VALUE;
How to use ignore case sensitive in the following code ? /** * * * searches...
How to use ignore case sensitive in the following code ? /** * * * searches for a specific file and prints the location (path) * of any files with a matching name */ import java.io.*; import java.util.Scanner; public class FileSearch { public static void main(String[] args) { FileCrawler crawler = new FileCrawler(); Scanner input = new Scanner(System.in); System.out.println("Please enter a folder to search:"); File directory = new File("./" + input.nextLine()); System.out.println("Please enter a file to search for:"); String filename...
explain how palynological analysis can be combined with other forms of biological proxy data in a...
explain how palynological analysis can be combined with other forms of biological proxy data in a multi-proxy analysis of Quaternary environments and events
No other code on this website works. Define a function drawCircle. This function should expect a...
No other code on this website works. Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle’s center point, and the circle’s radius as arguments. The function should draw the specified circle. The algorithm should draw the circle’s circumference by turning 3 degrees and moving a given distance 120 times. Calculate the distance moved with the formula 2.0 × π × radius ÷ 120.0. Define a function main that will draw a circle with...
Health IT can provide decision support for sensitive topics like advanced care planning. How important is...
Health IT can provide decision support for sensitive topics like advanced care planning. How important is advanced planning? Is IT necessary with sensitive topics?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT