func: void CWE321_Hard_Coded_Cryptographic_Key__w32_wchar_t_64b_goodG2BSink(void * cryptoKeyVoidPtr) wchar_t toBeEncrypted [ ] = L "String to be encrypted" DWORD encryptedLen = wcslen ( toBeEncrypted ) * sizeof ( wchar_t ) ; BYTE encrypted [ 200 ] ; memcpy ( encrypted , toBeEncrypted , encryptedLen ); if ( ! CryptEncrypt ( hKey , ( HCRYPTHASH ) NULL , 1 , 0 , encrypted , & encryptedLen , sizeof ( encrypted ) ) )  printBytesLine ( encrypted , encryptedLen ); void printBytesLine(const unsigned char * bytes, size_t numBytes) for (i = 0; i < numBytes; ++i) printf ( "%02x" , bytes [ i ] ); 