Encrypting a Password with PBKDF2
I created a password for the GRUB bootloader in Linux and encrypted it using PBKDF2. This utilized the SHA512 cryptographic hash which ran for 10,000 rounds (iterations). The amount of rounds can be modified, but be careful when doing so - as it may increase computational time considerably -, and be sure to test it before putting a system into production.
The video solution below describes key stretching, salting and PBKDF2.