Implement PBKDF1 algorithm