WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline TOXiC_RU

  • Newbie
  • *
  • Posts: 1
Bad encryption password not handled by filetool.sh
« on: September 01, 2012, 04: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

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