I know "encrypt" isn't the right description here. It's more like trying to "obfuscate" or "scramble" a password in a plaintext shell script. Say you have a UNIX shell script that does FTP to Windows ...
The flaw is caused by incorrect handling of the password check in a script file. When the user exceeds the number of tries allowed, the boot sequence continues normally and continues to try and mount ...