Run "unrar.exe" "x filename.rar -ppassword123" .Do not give space after -p

Quote from impactband4u on February 28, 2019, 12:14 pmHi guys
You know that with Winrar you can archive files and also set a password to open that archive files. Is it possible to write and read from and to a Winrar file that has a password. I want to save passwords in that Winrar file but if someone wants to open that winrar file it ask for a password.
I tried but with no success.
Thank You
Hi guys
You know that with Winrar you can archive files and also set a password to open that archive files. Is it possible to write and read from and to a Winrar file that has a password. I want to save passwords in that Winrar file but if someone wants to open that winrar file it ask for a password.
I tried but with no success.
Thank You

Quote from impactband4u on March 10, 2019, 5:02 pmOk I did my research.... It's not possible! I'm using lgaEncrypt and lgaDecrypt that works fine for me.
Ok I did my research.... It's not possible! I'm using lgaEncrypt and lgaDecrypt that works fine for me.
Quote from Deleted user on April 3, 2019, 8:30 pmGlad to know that you found a work around.
Actually, it can be done somehow. You need to copy rar.exe & unrar.exe from Program Files\WinRAR to your App's folder.
Then execute the Run command
Run "rar.exe" "a -hppassword123 h:\filename.rar c:\pdf"
Run "unrar.exe" "x filename.rar -ppassword123" .Do not give space after -pSource: https://askubuntu.com/questions/513647/unrar-folder-with-password-terminal
Glad to know that you found a work around.
Actually, it can be done somehow. You need to copy rar.exe & unrar.exe from Program Files\WinRAR to your App's folder.
Then execute the Run command
Run "rar.exe" "a -hppassword123 h:\filename.rar c:\pdf"
Run "unrar.exe" "x filename.rar -ppassword123" .Do not give space after -p
Source: https://askubuntu.com/questions/513647/unrar-folder-with-password-terminal

Quote from impactband4u on April 5, 2019, 6:02 amHi neodude
Yes it will be still great if I can do it this way. If you don't mind can you please make me a demo Pub with this two actions
1. To read and write to a text file (beats.txt) within the password protected .rar file
a. At startup it will read the text file in the password protected .rar file into ListBox1
b. With a button it will write "Variable" to password protected text file (beats.txt)
2. To play a wave file (drumbeat.wav) within the password protected .rar file
use password "1234" for example
I have already copied Rar and UnRAR to my App folder
Thank You!
Hi neodude
Yes it will be still great if I can do it this way. If you don't mind can you please make me a demo Pub with this two actions
1. To read and write to a text file (beats.txt) within the password protected .rar file
a. At startup it will read the text file in the password protected .rar file into ListBox1
b. With a button it will write "Variable" to password protected text file (beats.txt)
2. To play a wave file (drumbeat.wav) within the password protected .rar file
use password "1234" for example
I have already copied Rar and UnRAR to my App folder
Thank You!
Quote from Deleted user on April 5, 2019, 10:56 amHello @impactband4u
To read and write to a text file (beats.txt) within the password protected .rar file
Actually, the rar file needs to be extracted to some temporary folder with the help of unrar.exe and then the FileToVar & PlaySoundFile commands need to be used.
So, are you trying to use rar file as a security system to protect your app's data?
Yes, I can make a demo for it.
Hello @impactband4u
To read and write to a text file (beats.txt) within the password protected .rar file
Actually, the rar file needs to be extracted to some temporary folder with the help of unrar.exe and then the FileToVar & PlaySoundFile commands need to be used.
So, are you trying to use rar file as a security system to protect your app's data?
Yes, I can make a demo for it.

Quote from impactband4u on April 5, 2019, 12:00 pmSo, are you trying to use rar file as a security system to protect your app's data?
Hi neodude, yes i was thinking of doing that, but now that you said the files must be extracted to a temporary file, my question is....
- Will it save the changes made to the original .rar file or only to the temporary .rar file?
- If it extract to a temporary file, is it possible to get hold of the content without the password?
I use "TempDir" sometimes if i don't want to show the content in the "PubDir' but some software that cleans up the computer also removes everything in the "TempDir' so it can be a problem sometimes
Regards
So, are you trying to use rar file as a security system to protect your app's data?
Hi neodude, yes i was thinking of doing that, but now that you said the files must be extracted to a temporary file, my question is....
I use "TempDir" sometimes if i don't want to show the content in the "PubDir' but some software that cleans up the computer also removes everything in the "TempDir' so it can be a problem sometimes
Regards
Quote from Deleted user on April 5, 2019, 12:35 pmA folder will be created in TempDir and your rar files will be extracted to it. After that you can access those files with VisualNEO's commands.
After editing any extracted file, you need to create a new rar file and replace your previous rar file.
It is rare that some cleanup software will automatically clean the TempDir. As a remedy to this scenario, you should use the FolderExists command and re-extract the files in case the folder goes missing.
If it extract to a temporary file, is it possible to get hold of the content without the password?
Since, the contents are extracted to a temporary folder, one who knows about the Temporary Folder can get a hold of your files.
For absolute security, you need to extract the RAR file to your RAM which is not easy with VisualNEO.
A folder will be created in TempDir and your rar files will be extracted to it. After that you can access those files with VisualNEO's commands.
After editing any extracted file, you need to create a new rar file and replace your previous rar file.
It is rare that some cleanup software will automatically clean the TempDir. As a remedy to this scenario, you should use the FolderExists command and re-extract the files in case the folder goes missing.
If it extract to a temporary file, is it possible to get hold of the content without the password?
Since, the contents are extracted to a temporary folder, one who knows about the Temporary Folder can get a hold of your files.
For absolute security, you need to extract the RAR file to your RAM which is not easy with VisualNEO.
Quote from Deleted user on April 5, 2019, 1:12 pmThis is how you can prevent a file from being deleted - https://visualneo.com/forum/topic/lock-a-file-with-visualneo#postid-953
This is how you can prevent a file from being deleted - https://visualneo.com/forum/topic/lock-a-file-with-visualneo#postid-953
Quote from Mohamed on August 21, 2021, 2:09 amHello , i need help in How to read text file from winrar.rar file has a password , i haven't experience in computer security so, please can you write step by step how to do that
Hello , i need help in How to read text file from winrar.rar file has a password , i haven't experience in computer security so, please can you write step by step how to do that

Quote from Kohag on October 28, 2021, 12:52 pmWell, actually I know that with winrar I can archive files and also set them a password, for opening them later by inputting that password.
Well, actually I know that with winrar I can archive files and also set them a password, for opening them later by inputting that password.

Quote from DaviddeArgentina on October 30, 2021, 9:44 pmCould any upload a freeware version of RAR / UnRAR programs?
Thanks in advance
Could any upload a freeware version of RAR / UnRAR programs?
Thanks in advance

Quote from Vadim on October 31, 2021, 10:35 am@daviddeargentina
If I understand wikipedia correctly, RAR can only be unpacked for free. The packer is paid.
If I understand wikipedia correctly, RAR can only be unpacked for free. The packer is paid.

Quote from CN_Iceman on October 31, 2021, 11:02 amQuote from DaviddeArgentina on October 30, 2021, 9:44 pmCould any upload a freeware version of RAR / UnRAR programs?
Thanks in advance
You can use 7Zip with AES-256 encryption in 7z and ZIP formats. It is free and has a command line.
https://www.7-zip.org/
Quote from DaviddeArgentina on October 30, 2021, 9:44 pmCould any upload a freeware version of RAR / UnRAR programs?
Thanks in advance
You can use 7Zip with AES-256 encryption in 7z and ZIP formats. It is free and has a command line.



Quote from DaviddeArgentina on October 31, 2021, 8:46 pmthanks all!
thanks all!

Quote from Kohag on November 9, 2021, 3:10 pmWell, actually I know that with winrar I can archive files and also set them a password, for opening them later by inputting that password. And yes it is possible to write and read from, and to a winrar file that has a password. Probably you did something wrong, that’s why you were not able to put a password. File encryption is an easy task that is helps us to protect our data, and only those who have the password, can have access to it. If you are an active mac user and are interested in testing your network speed, just use [url= https://okaapps.com/product/1455463454] Mac Wifi Speed test [/url], it has a nice user design, and it’s easy to apply.
Well, actually I know that with winrar I can archive files and also set them a password, for opening them later by inputting that password. And yes it is possible to write and read from, and to a winrar file that has a password. Probably you did something wrong, that’s why you were not able to put a password. File encryption is an easy task that is helps us to protect our data, and only those who have the password, can have access to it. If you are an active mac user and are interested in testing your network speed, just use [url= https://okaapps.com/product/1455463454%5D Mac Wifi Speed test [/url], it has a nice user design, and it’s easy to apply.

Quote from HPW on November 9, 2021, 3:29 pmHello,
Remember that VNW now supports protected ZIP in the core runtime.
RAR may only have a slightly better compression-ratio.
Regards
Hans-Peter
Hello,
Remember that VNW now supports protected ZIP in the core runtime.
RAR may only have a slightly better compression-ratio.
Regards
Hans-Peter