How To Create Password In Winrar

0 views
Skip to first unread message

Charise Scrivner

unread,
Aug 3, 2024, 5:41:01 PM8/3/24
to verpobudu

I'll try and make this as short as i can. I'm looking for a .bat file to rar up and password folders with files in them, but the problem is a little more tricky than i thought, each folder can have anything from 1 to 400 files in it, i have two .txt files, one with the desired number of.rar file names and one with the desired number of .rar passwords, so txt doc's look like this, first is filenames.txt:

What I want to do is apply the 1st list of 50 file names in the .txt document to 50 sub folders sat within a main folder, and the 1st list of 50 passwords to be used for each of those .rar's created, so my end result would be > inside 1st main folder 50 rars each passworded differently, I also want the .rar files passwords to be encrypted so you cannot see the contents of the any .rar file unless you enter the password.

I created file names & password lists to help with the process of generating the passworded rar files, but if you can do it without needing predefined password/file name lists then that would be less work to do, but i would need some sort of file name / password list creating by the .bat file so i know what .rar has what password.

Basically I'm looking for it to take a group of folders and rar them up individually in some form of alphabetical order and apply random passwords to the rar's (these passwords should be 20 characters long and contain numbers and upper/lower case letters), but i want the rar encrypting which is an option in winRAR which stops users seeing contents of the rar until a password is entered

The first part merely sets up some variables, used later in the script. (As it happens, every one of them is used in the script just once, so you could easily substitute the values for the corresponding variable expansions. I only declared those variables habitually, I often use variables like that in my batch scripts.)

the password file is read by one of the commands in the inner loop's body, namely SET /P. SET /P reads the standard input stream, which is the console by default, but the standard input in this case is redirected for the entire inner loop to be from the passwords.txt instead.

Note that you could generate the passwords in a similar way. If there's a single command that accepts the output file name as a parameter and just does the job without interruptions, you could insert that command just after the DIR.

My situation: I create containter in VeraCrypt encrypted by AES-Twofish-Serpent with Whirpool. I put my data in here and then I split the container using WinRAR into smaller pieces without compression (for example 2 GB containter into 4 500 Mb files). I also set password for the RAR which is different from the password I set for the container.

To answer in a word, yes, it's less safe. But probably not for the reasons you are attempting to guard against. Everyone dealing with security can sometimes get sucked into the Fort Knox way of thinking, but this is not always the best way to go about security. Remember that security is a combination of many factors, two of the most prominent being safety, and usability.

Your method tends to lean towards the analogy of "can i guard my house by encasing the entire thing with concrete?" well yes, you can and it will be extremely difficult for anyone to get into your home. But if you're not careful, you yourself may end up without a way in.

Your method here adds an extra layer of security, but that layer is the password, nothing more. Splitting the file into 500mb entities serves to only apply a sort of "security through obscurity" approach, which would be cool if it were part of some scavenger hunt or hacker challenge, but for your own data not so much. Remember read write errors are a thing. The more you do this the more likely you are to miss a piece, or for something to go wrong when reconstructing the original encrypted container. Maybe it will be fine at first but over time you may find yourself unable to reconstruct it.

Secondly, what is the backup methodology here? are you going to create two or more of these? because if you do end up in a situation where you cant recover your files what then? If you want to be sure that a backup exists that will be there when you need it you may find yourself using another method. Then i have to ask, why wouldn't anyone who wants this data just go for that then?

This kind of thing almost always adds complexity for the user, and usually results in only marginal security gain. Since, veracrypt already has the option to create a hidden container within a container. This is considerably simpler and, i would wager, provides the same if not more security than what you propose here. Since in one case the enemy knows another password is required, and in the hidden container's case, they may not.

Given the current situation, your approach actually has the advantage that you can CRC-check the file's integrity when unpacking. If there is a problem, Winrar will tell you that (by the way, you should switch to 7Zip. It's better under every aspect).

I used to be able to create a rar archive from a file or folder by just right-clicking on the file (in Nautilus) and choosing "Compress...". I had the option to choose the rar format, which I like because I can create password-protected archives.

I have a zip file made in Windows 7 with winrar which opens with the password just fine in Windows- but both Ubuntu unzip from GUI and python zipfile utility running in Ubuntu cannot unzip the file with the correct password.

WinRAR is one of the most reliable and popular software when it comes to compressing and protecting compressed data. It is handful utility software for accessing files stored in most popular compression format after ZIP that's RAR. RAR is compression protocol which compresses large files by storing duplicated data in files more efficiently and occupying less storage space. RAR files are not natively supported by Windows so there is software like WINRAR that are used for that purpose. Not everyone just compresses files with WinRAR and send it right away, there are peoples who are looking for security and WinRAR can protect their compressed data using password protection. Once compressed and password protected the data cannot be decompressed without password. In this article, we will discuss how to password protect WinRAR archives.

WinRAR provides ability to create password protected archives using WinRAR add password and block access to all those without password. Only personnel with password will be able to access files and folders inside password protected archive that you will create. Here's a step by step tutorial of How you can create a password protected archive using WinRAR:

Let's say you've received a compressed file and you've made few secret changes (like added or deleted private files from archive) now you want to set a password because it would be invulnerable to send unprotected files. There is a way to set password on an existing WinRAR archive and here's how you can do it.

Step 4: Enter your password in both fields, make sure to choose strong password that is not breaking, however it depends on the importance of data that you are willing to protect. Now Press "OK".

Step 5: Press "OK" in your WinRAR window and compression will start and you will get RAR archive after short time. The RAR processing time depends on performance of your computer and size of data.

Yes, it is possible to unlock password protected WinRAR archives, to achieve this we need to download a software known as PassFab for RAR. This is software that helps you to unlock WinRAR password protected files. It recovers forgotten passwords of encrypted WinRAR archives (RAR). Including latest versions of WinRAR. There are three types of attacks that are done to ensure decryption of forgotten RAR password Brute-force Attack, Brute-force with Mask Attack and Dictionary Attack. Following are the simple steps that you need to follow to unlock RAR with PassFab:

Step 4: Once process is completed you will be shown the password of RAR file simple click on "Copy" or note it somewhere safe and try to remember it. Now open your RAR file and extract when asked for password enter the password you got from PassFab to uncompressed.

You have all the information you required to create a password protected archive. Not just that now you know how to make an old RAR file password protected and break its password with PassFab for RAR when required.

I am using the default compressing feature on my Macbook frequently. And it works fine all the ways. However, I need to make a new zip archive and password protect the zip for security reason. Can I do this with the default compress option on my Mac?

A key icon shows up, and when I type nothing happens. If I hit enter it moves to the password verification prompt. Same thing, if I type no text shows up and hitting enter for a final time will let me know that password verification failed.

While using Terminal to create a zip file is a valid method, I understand that it may not be suitable for everyone, especially those who are not comfortable with command-line interfaces. So, the method 1 maybe a best solution.

Yep, I totally get wanting to add a layer of security to your zip files. The default compress option on your MacBook won't let you password-protect directly, but fear not, your trusty Mac still has a way to do it. Just requires a little trip to the Terminal! Here's how:

Thanks for the steps and I followed the instructions carefully. However, when I was trying to open this password protected on another PC, WinZip says the file is damaged and there is no way to open the file. Anythought?

Zip files, or zipped files, are a fast and easy option when you need to share large or multiple files all at once, usually via email. While the technology behind them is quite old, Zip file technology is still great for compressing and sharing large files or multiple files at once via easy-to-transport folders. Rather than share one large file or several files one-by-one, you can Zip the files to compress the size, and then share the single Zip file.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages