SmartFTP FTP Library
Example

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("1.5")
sfFTPLib::IRSAKeyPtr pRSA;
if(SUCCEEDED(pRSA.CreateInstance(__uuidof(sfFTPLib::RSAKey))))
{
  DWORD t0 = ::GetTickCount();
  int nBits = 1024;
  TRACE(_T("Generating %d bits RSA Key\n"), nBits);
  pRSA->Generate(nBits);
  TRACE(_T("Key generation took %d ms\n"), ::GetTickCount() - t0);
}
Copyright (c) by SmartSoft Ltd. All rights reserved.