Trusted Platform Module (TPM, also known as ISO/IEC 11889) is an international standard for a secure cryptoprocessor, a dedicated microcontroller designed to secure hardware through integrated cryptographic keys.
It is used to generate a password safely in a system. It avoids generating a password in an external system and having to transport it from one to another.
TSS.MSR is a library developed by Microsoft to access TPM functionality. It is available for .NET and C++: