Moved getDerivedKey to Utils