Question

Is it dangerous to have a plain text credentials.js or should you encrypt it?

Is it dangerous to have a plain text credentials.js or should you encrypt it?

Homework Answers

Answer #1

If you mean to ask whether storing the user credentials as plain text in a javascript file is dangerous, the answer is a BIG YES. There are plenty of reasons behind it.

  • The attackers can directly access the javascript files. So when there are credentials stored as plain texts, there are more possibilities to steal the information such as sensitive information from database like Bank Account Information, Debit/Credit card information,etc.,
  • The next important point to be noted is the javascript code will be visible to the users as plain text. So when we have passwords stored in javascript as plain text, it will also be visible to the outsiders which will impact the security and makes the website/application vulnerable.
  • Also when the passwords are stored as plain texts it can be easily exposed to others when the user works in a shared environment.

So the direct answer to the question is We should not store the credentials as plain text. So what should we do then? The answer is the credentials should be encrypted and stored in the javascript files. It should be decrypted only when it requested from the browser so that it will not be exposed to the outsiders. It will also improves the security of the website/application.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Let's say we are using vigenere cipher. We have a key of "red" and a plain...
Let's say we are using vigenere cipher. We have a key of "red" and a plain text of "cats and dogs", what is the cipher text? ____ (Keep the space between words, but do not use other punctuation.) If we use generic Caesar cipher to encrypt "I have pizza for lunch", using the key "V". What would the cipher text be? "____" Do not enter punctuation; keep the space between words. When using Caesar cipher, if the plain text is...
Vigenère Cipher. In the Vigenère Cipher, we use a special keyword to encrypt a message. We...
Vigenère Cipher. In the Vigenère Cipher, we use a special keyword to encrypt a message. We represent each letter of the alphabet as a number from 0-25. In order, we add each letter from the keyword to the message and mod by 26. If the keyword is shorter than the message, we simply repeat the keyword. For example, lets say that the message is HOWSTUFFWORKS and the keyword is CIPHER. The following table shows how we can find the final...
A bank is using a=13 and b=8 in affine cipher to encrypt all pin numbers and...
A bank is using a=13 and b=8 in affine cipher to encrypt all pin numbers and send to a customer. A customer received a cipher text 6. What is the plain text pin number ?
when enciphering a message, Plain Text is changed into A) Code Text B) Caesar Text C)...
when enciphering a message, Plain Text is changed into A) Code Text B) Caesar Text C) Euler Text D) Plain Text The Deciphering formula for C = (11P + 16)mod 26 is A) P=(19C+16)mod26 B) P=19(C−16)mod26 C) P=(19C−16)mod26 D) P=19(C+16)mod26
Using One-Time Pad Encryption, encrypt the message "JELLO" with one time pad key "YMCKM". Use the...
Using One-Time Pad Encryption, encrypt the message "JELLO" with one time pad key "YMCKM". Use the resultant cipher (from above step) and the one time pad key (pre-shared "YMCKM") to get the plain text.
If a one character in the plain text is changed in the Playfair Cipher, explain for...
If a one character in the plain text is changed in the Playfair Cipher, explain for example how many characters are changed in the ciphertext for all possible cases.
You have learned that too much of anything is dangerous. Also, watching TV series and movies...
You have learned that too much of anything is dangerous. Also, watching TV series and movies made you think that acids are dangerous. But as a pharmacy student, explain why would you not want to completely stop the HCl secretion in the stomach?
Write a python program that will perform text analysis on an input text using all of...
Write a python program that will perform text analysis on an input text using all of the following steps: 1. Take the name of an input file as a command line argument. For example, your program might be called using python3 freq.py example1 to direct you to process a plain text file called example. More information is given on how to do this below. 2. Read the contents of the file into your program and divide the text into a...
Suppose that M&M claims that each bag of Peanut M&Ms should be 18 grams and Plain...
Suppose that M&M claims that each bag of Peanut M&Ms should be 18 grams and Plain M&Ms should be 13.5 grams. Suppose that Skittles claims that each bag contains 16 grams. a. Test the claim that M&M is shorting its customers in servings of Peanut M&Ms. b. Test the claim that M&M is overfilling Plain serving bags of M&Ms. c. Test the claim that Skittles weights are different than stated. d. Discuss your choice of ?. i. Why did you...
QUESTION 1 What does DK(EK(P)) correspond to? Plain Text Cypher Text Gibberish Encryption Key None of...
QUESTION 1 What does DK(EK(P)) correspond to? Plain Text Cypher Text Gibberish Encryption Key None of these QUESTION 2 What is the goal of Cryptanalysis? Attempt to break a single message Attempt to recognize patterns in encrypted messages Attempt to deduce the key Attempt to find weaknesses in the implementation Attempt to break the algorithm All of these QUESTION 3 What is the maximum possible keys in Ceaser cipher? QUESTION 4 Choose ALL that are true for Symmetric Key Encryption...