Simple Encryption. Read from a file specified by the user and encrypt the content of the file using a simple shifting technique. Also, ask the user to input the shift size. Output the encrypted message to another file whose filename is also provided by the user.
Q: count the number of files in each of your sub-directories using the for loop, read two numbers and…
A: so first we will write the code for counting the files #!/bin/bash directories=($(/bin/ls -l $1…
Q: 1. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress…
A: python script to store dictionary word and compress it to a zip file with protected password.
Q: Create a random access file in C drive, write numbers 1 to 100 into that, add number 1000 in 10th…
A: import java.util.*;import java.io.*;import java.nio.*;public class Main{ public static void…
Q: Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of…
A: Given:
Q: belo
A: given - Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An…
Q: A- Using RSA, generate a private key and a public key. Send the generated keys as a text file (not a…
A: The name is Vahid Rafe, so we encrypt this name and one more Jannie Rudolf.
Q: 2. Write the DOS command for the following: Consider that you have four txt file in "E:\ICT" with…
A: According to the question we need to write the DOS command for the following: Consider that you have…
Q: write in g++ Write a program that takes that reads an input from file input.txt rather than keyboard…
A: dup system call is use to create a copy of file,dup is the short form of duplicate. Note: both…
Q: Write a script which copies the contents of one text file to another text file. This script should…
A: Hey, Since there is no specific language mentioned in the question. So, we will use python to…
Q: i) Create a batch file to: • Read a password from the user Compare the password read from the…
A: The complete code is given below with output.
Q: Study Lab2, and use the DOS to implement the following: Show me the MD5 file before and after…
A: New switches: -spm and -im!{file_path} to exclude directories from processing for specified…
Q: ite a python program to find the longest words in a text file for example: [general-purpose,…
A: Lets see the solution.
Q: PYTHON!!!!!! Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text.…
A: The, code has given below:
Q: (a) Write a shell script using for loop to output all files that have extension “.sh”. (b)Write…
A: b)Write script using case to see current date, time, username and current directory, until and "e"…
Q: I need to create a Transposition Cipher in Java that runs in Eclipse. The programs need to ask the…
A: Code: import java.io.*;import java.util.*; // Class// For transposition cipherpublic class GFG {…
Q: Simple Encryption. Read from a file specified by the user and encrypt the content of the file using…
A: Caesar Cipher is the simplest shifting encryption technique. In this method each letter is replaced…
Q: 3rd: Write a shell script program (conversion.sh) which has got a parameter ( a filename). In each…
A: Answer : #!/bin/bash # Taking the 1st argument which contains the file namefile=$1 # Loop through…
Q: Write a program to allow user to select the following choice to see the content of a file (q4File)…
A: Given: Write a program to allow the user to select the following choice to see the content of a file…
Q: How can I read in negative integers from a file? E.g the file contains 1. 4 2. -4 3. -10…
A: While doing programming in any programming language, you need to use various variables to store…
Q: Which of the following is correct to read 5 characters from a file object f1.? a. All of these b.…
A: Which of the following is correct to read 5 characters from a file object f1.? a. All of these b.…
Q: What is the correct order for converting the source code into an executable file?
A: Source code the program code which is in high level language and this is in reader format. The…
Q: Ask the user for a filename that contains an unknown number of integers. Print the numbers one per…
A: Since multiple questions have been posted at a single request, we will answer only first question…
Q: Create a text file with some text. Import the MyEncryption module in your main module and test both…
A: PLEASE DO SUPPORT FOR MY EFFORTS, THANKS! ANSWER: MAIN prog import Myencryption as mpif __name__…
Q: echo command, answer: (i) the ASCII number code for new line (enter key) and (ii) for any one letter…
A: part (i) Prints ASCII code for newline character echo "\n" | xxd -p
Q: Write a Python program in a .py file that implements a new encryption algorithm that includes the…
A: # User enters a plaintext stringplainText = input("Enter message: ") # First we must convert the…
Q: Imagine that you were to create a binary file to which you wrote out a double value. If your friend…
A: Introduction: Binary file: It is a file in which all data are written in binary format(sequence of…
Q: Write a shell script that uses a for loop to output the names of all the files and directories in…
A: for path in sample/*;do printf -- '%s\n' "${path##*/}" done
Q: Write a java program that reads from a file specified by the user and encrypt the content of the…
A: Please find the code and output below : Make the files that you are going to put as input before…
Q: Write a program that will read a message from another text file and surround each occurrence of an…
A: Coded using Java.
Q: 14:\We can delete a file shortcut and a file by deleting the shortcut? a. True b. False
A: Shortcut is just a replica of original file
Q: What is the difference between a text and a binary file? Can you use a text editor to see a text or…
A: Introduction: Here we are required to explain what is the difference between a text and a binary…
Q: it does not work can u send the file and re write the cade right
A: Answer: Python Source Code: def main(): while True: print("1.Display all Patient Record")…
Q: write a code to search a name from a file and print out the name using c
A: Introduction: A File can be used to store a large volume of persistent data. Like many other…
Q: 1. Prompt the user for the names of two files. o The input filename could be the name of the script…
A: Get the input file name Get the output file name Open the input file in reading mode Open the output…
Q: how to encrypt """ File: decrypt.py Project 4.3 Decypts a file of encrypted text. and prints the…
A: decrypt.py Here decrypt a file of encrypted texts in line by line into another file. So input a…
Q: 2 tries left Which of the following statements is(are) true? (Check all that apply.) A. Hashing is…
A: Below is the complete solution with explanation in detail for the given question.
Q: Write a program to change the alphabets in a file in following manner. Replace each alphabet with…
A: The required C++ code is: #include<iostream>using namespace std;int main(){ char ch,…
Q: Given a X509 certificate contained in the file sdo.cer, write a program to import and print out…
A: Code for the programming language If the content of your X905 certificate is in the source file…
Q: You are going to apply that technique to an integer number of 5 digits. Create a .cpp file named…
A: #include<iostream>using namespace std;int main(){ // Enter key value k: 3 // Enter a…
Q: Rearrange the following lines to produce a program that reads and prints the contents of a file to…
A: In this python program, We have been given a puzzled program to read a file with prints the content…
Q: Many PC games save player's in-game data into files so that the player can pause the current playing…
A: Because the data is saved in one byte, this means 8 bits. Now we know that a single hex value…
Q: PART 2: you will try to use "brute force" to decrypt an encrypted message, where you only have the…
A: One of the reasons for implementing an encryption-decryption system is privacy. As information…
Q: Now write another program that will take the encrypted file in Q3 and will decrypt it to…
A: 1. Declare n, arr[n], sum 2. open file to read 3. read n 4. Loop from i = 0 to n i. read…
Q: What should you do if you unintentionally delete a file and then decide that you want it back?
A: 1) Recycle Bin is a place where deleted items are temporarily stored in Windows unless they are…
Q: Java program with a simple encryption. Read from a file specified by the user and encrypt the…
A: Required: Java program with simple encryption. Read from a file specified by the user and encrypt…
Q: Use Python write a program that reads a file and writes out a new file with the lines in reversed…
A: Please find the answer below :
Q: Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of…
A: Algorithm: Start Read input and output file names Read shift Open input file and read the text and…
Q: In Linux, Find every file that contains at least two digits in “Folder3” & include subdirectorie
A: The, command has given below:
Q: Write a program that allows the user to enter name and phone number. Have the program accept input…
A: Hey, since multiple questions posted, we will answer first question according to our policy. If you…
- Simple Encryption. Read from a file specified by the user and encrypt the content of the file using a simple shifting technique. Also, ask the user to input the shift size. Output the encrypted message to another file whose filename is also provided by the user.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
- Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of the program interface is shown below: Enter the input file name: encrypted.txt Enter the output file name: a Enter the distance value: 3On your own computer, find four files that are stored in four different directories. For each file, list both the relative file name and its complete file name.Your assignment is to write a program that will: 1. accept the name of a file to encrypt (either via prompt or command line argument) 2. produce an encrypted version of the specified file (saving to a different filename), and 3. decrypt the encrypted file (saving to a third filename). c++
- Write a script which copies the contents of one text file to another text file. This script should prompt the user for the names of two text files. The contents of the first file should be input and written to the second file.Using an alias, and the range operator, and required metacharacters, display all files which begins with any letter and ends with n and second letter must be a vowel. in powershell I need the answer quickly pleaseHow many different methods are there to access a file? Can you tell me the pros and cons of using their use?
- PART 2: you will try to use "brute force" to decrypt an encrypted message, where you only have the first 96-bits of the 128-bit secret key (last 4 bytes of the secret key are missing!) The program should be called "findk", and should deal with two files that contain the encrypted text as a stream of bytes and the first 96-bits of the key, respectively. The program should print out on standard output the missing 4 bytes of the key in hexadecimal, the decrypted message and the time it took to find the correct key.o To test this part, here is the encrypted file (ciphertext2.dat), and the first 96-bits of the key (partial-key.dat) Hint: the original message starts with the word "Salam". partial key is b'\x01{:\xec<\x8e\xfc\x8b\x19\xf8#\xc0' ciphertext2 is…A program holds a mandatory write lock on an entire file, but a user is still able to edit that file. Discuss a scenario where that would be possibleModify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of the program interface is shown below: Enter the input file name: encrypted.txt Enter the output file name: a Enter the distance value: 3 Project 1: text = (input("Please enter your text: ")) shift = int(input("Please enter the shift: ")) def circularShift(text, key): text = text.upper() cipher = "" for letter in text: shifted = ord(letter) + key if shifted < 65: shifted += 0 if shifted > 90: shifted -= 0 cipher += chr(shifted) return cipher print (circularShift(text, shift)) Project 2 text = (input("Please enter your text: ")) shift = int(input("Please enter the shift: ")) convert = -(shift) def cypher(text, key): text = text.capitalize() cipher = "" for letter in text: shifted = ord(letter) + key cipher += chr(shifted) return cipher print (cypher(text, convert))
- Write a script that gets from a user a paragraph of plaintext and a distance value. Then output this paragraph into an encrypted text using a Caesar cipher. Write this text to a file called 'encryptfile.txt. Then read this file and write it to a file named 'copyfile.txt' I do not know how to apply the algorithm and how to save itPython- Write a script that uses the hashlib module to hash a user entered password and then write the hashed password to a file. Use the input function to prompt the user for the password Hash the password using the hashlib md5 function. Use utf-8 encoding. Include the new line (\n) character when you write the hashed password to the file.Can it be ignored if a Master File has information that will be there for quite some time?