don@t43:~/test$ cat a.txt b.txt c.txt
1 2 3
4 5 6
7 8 9
don@t43:~/test$ rar a -hp test.rar a.txt b.txt c.txt
Enter password (will not be echoed):
Reenter password:
RAR 4.00 beta 3 Copyright (c) 1993-2010 Alexander Roshal 17 Dec 2010
Shareware version Type RAR -? for help
Evaluation copy. Please register.
Creating archive test.rar
Adding a.txt OK
Adding b.txt OK
Adding c.txt OK
Done
don@t43:~/test$ rm *.txt
don@t43:~/test$ unrar e test.rar
UNRAR 4.00 beta 3 freeware Copyright (c) 1993-2010 Alexander Roshal
Enter password (will not be echoed) for test.rar:
Extracting from test.rar
Extracting a.txt OK
Extracting b.txt OK
Extracting c.txt OK
All OK
don@t43:~/test$ file-roller test.rar
But then file-roller gives:
"CRC failed in the encrypted file /home/don/test/test.rar. Corrupt file or
wrong password."
The window to enter a password never comes up.
Using file roller to create a password protected .rar works, but trying to
extract from it fails with the same message.