WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: protected-mode - encrypted mydata.tgz.bfe cannot be opened on the command line  (Read 3490 times)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
the bcrypt-encryption with the protect bootcode seems to be different from the bcrypt-encryption on the command line.
it's no problem to encrypt and decrypt files on the command-line with or without the option -c.
i tried many different ways and analysed the /usr/bin/filetool.sh, but i could not decrypt the mydata.tgz.bfe on the command line.
is it a bug that you can reproduce or could you give me a hint how you can decrypt the backup in the terminal!?

i get this error-message, although i used the right password (it's definetly not a kmap or password problem, cause i used a simple pw like 12345678 in my tests):
tc@box:~$ bcrypt mydata.tgz.bfe
Encryption key:
Invalid encryption key for file: mydata.tgz.bfe

is the command-line bcrypt different to the protect-mode-bcrypt?

i refer to the forum topic.
http://forum.tinycorelinux.net/index.php?topic=9241.0

i hope it's ok that i opened this new topic. the above url is a link to the use of encrypted backups generally and this is a topic to open an automatic used encrypted-backup that i want to decrypt manually in some situtations...

thank you for your help.
« Last Edit: April 16, 2011, 06:28:22 AM by netnomad »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Why do you post the exact same problem, and refer back to the previous thread?
Your question has already been answered.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
sorry, i thought it's ok, because in the thread i' ve asked a very basic topic, and afterwards the next theme was really specific.b but i think i was misunderstood.

but i think, that my question is not answered yet, perhaps i am wrong.

in my configuration
it's no problem to encrypt a file on the command line.
it's no problem to decrypt a file on the command line.
in protect-mode it's no problem to get an encrypted backup.
at the next start there is no problem that an encrypted backup is restored.

but i didn't succeed in decrypting mydata.tgz.bfe on the command line with bcrypt that was made as a backup in the protect-mode.

perhaps you could give me a hint, thanks in advance.
« Last Edit: April 16, 2011, 11:04:28 AM by netnomad »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
That is why it is called "protect". To minimize hacking attempts at the command line.
10+ Years Contributing to Linux Open Source Projects.