Pipes password from kdialog to geli attach

yarodin yarodin at gmail.com
Sat Sep 22 10:21:28 PDT 2007


init:
password=`kdialog --password "Enter the password"`
echo $password|sha256|geli init -s 4096 -P -K - /dev/ad0s1e

atach:
password=`kdialog --password "Enter the password"`
echo $password|sha256|geli attach -p -k - /dev/ad0s1e

Is it very unsecure? May be a better method exists?


More information about the freebsd-geom mailing list