Corrected the length of the salt for private key encryption

This would corrupt the private key file whenever the DES cipher would get selected.
Apparently, the list is not ordered in the same way on every system. It could also be a good idea to buffer the changes and write them all at once after to avoid corrupting the file whenever there is a bug.