Sample code to generate security token hash using C#

please send me the sample code for security token hash generation using C#.