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?
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...
Encrypt the given plaintext with the key. Built the key matrix (big size). And show how...
Encrypt the given plaintext with the key. Built the key matrix (big size). And show how you get each letter ciphertext (you can do that by making shapes and arrows in key matrix). No need to draw key matric again and again. Show all your work. If you just write cipher text and key matric without showing (shapes and arrow on key matrix) that how you get the ciphertext then your marks will be deducted. key : alphabets plaintext :...
wha should be include in the nursing care plain for an acutepain on a burn patient
wha should be include in the nursing care plain for an acutepain on a burn patient
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT