WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bad encryption password not handled by filetool.sh  (Read 1764 times)

Offline TOXiC_RU

  • Newbie
  • *
  • Posts: 1
Bad encryption password not handled by filetool.sh
« on: September 01, 2012, 01:45:54 AM »
Version 4.6

Bad encryption password not handled by filetool.sh

Here some workaround for this:
in "RESTORE" section of filetool.sh

...
     KEY=$(sudo cat /etc/sysconfig/bfe)

# FIX: check decryption key

cat << EOD | sudo /usr/bin/bcrypt -o "$MOUNTPOINT"/"$FULLPATH"/$TARGETFILE 2>/dev/null >/dev/null
"$KEY"
EOD
if [ "$?" != 0 ]; then failed; fi     

# FIX: end of checks

     if grep -q "comparerestore" /proc/cmdline && [ ! -e /etc/sysconfig/comparerestore ]; then
...

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bad encryption password not handled by filetool.sh
« Reply #1 on: September 04, 2012, 09:52:11 PM »
To handle the case of an altered key during system use.
OK. Accepted. Thanks!
10+ Years Contributing to Linux Open Source Projects.