#11: Provide library function for encoding passwords