To make your cursor wait use this at the begining of a function.
// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;
// Execute your time-intensive hashing code here...
To change back cusrsor to default.
// Set cursor as default arrow
Cursor.Current = Cursors.Default;