Answer:
- custom_encoded = ""
- custom_message = "this is a pen"
- custom_encoding = {
- "a": "1",
- "e": "2",
- "i": "3",
- "o": "4",
- "u": "5"
- }
-
- for c in custom_message:
- if(c in custom_encoding):
- custom_encoded = custom_encoded + custom_encoding[c]
- else:
- custom_encoded = custom_encoded + c
-
- print(custom_encoded)
Explanation:
The solution code is written in Python 3.
Let's define a variable custom_encoded with an empty string (Line 1).
Create another variable custom_message and set a sample string to it (Line 2).
Create one more variable custom_encoding to hold the mapping values between vowel and their respective encoded character (Line 3-9).
Create a for loop to loop through all the character in custom_message (Line 11) and in the loop check if the current character is found in custom_encoding dictionary, if so, use the current character to loop up the dictionary for the encoded value and add the encoded string to custom_encoded (Line 12-13). Otherwise, just add the current character to custom_encoded (Line 14-15).
At the end, print the custom_encoded to terminal and you shall get th3s 3s 1 p2n
Answer:To restart a network interface in Linux, you can use the ifdown to turn off the given network interface, then using the ifup command to turn on again so that to restart that network interface. After restarting the network interface, you can use ip or ifconfig command to get the ip address information.
Explanation:
Answer:
Option C i.e., RIPEMD is the correct option for the following question.
Explanation:
Because RIPEMD is the algorithm that is used for the hash primary design characteristic which has two independent and unlike parallel chains of the calculation and computation and the outputs of which are then linked to the process at the end. It is also used for the safe process of replacing the 128-bit hash method.
Other options are wrong because these are not related to the following statement.
Answer:
Below:
Explanation:
1. Practice mail security. Use a public mailbox rather than your home mailbox to send bill payments and other mail containing sensitive information. Pick your mail up promptly and ask the post office to hold it while you’re away.
2. Guard your Social Security number. Don’t carry your Social Security card, military ID, Medicare, or other cards that have your Social Security number on them unless you are going somewhere where you will need them. Only provide your Social Security number when there is a legitimate need to do so.
3. Lock and shred. Keep your billing and banking statements and other personal records locked up and shred them when no longer needed.
4. Stop prescreened credit and insurance mailings. Call toll-free 1-888-567-8688 to get off mailing lists for credit and insurance offers. Your Social Security number will be required. This keeps thieves from intercepting and accepting the offers in your name and doesn’t affect your eligibility for credit or insurance.
5. Keep private information to yourself. Never respond to phone calls or emails asking to confirm your Social Security number or account numbers. Don’t leave PIN numbers, passwords or other personal information around for others to see.
6. Be safe online. Use anti-virus and anti-spyware software and a firewall on your computer and keep them updated. When you provide financial or other sensitive information online, the address should change from “http” to “https” or “shttp.” A symbol such as a lock that closes may also indicate that the transmission is secure.
7. Look at your bills and bank statements promptly. If you find any charges or debits that you never made, contact the bank or company immediately.
Hope it helps.......
It's Muska...
Answer:
by simply just logging on and using the internet.
Explanation: