Actual referenced code is appended in the end. From what I can understand from the code for PBKDF2 or RFC2898 in C# as given in the above link .
I have come to the f