Jump to content

Ugochukwu Mmaduekwe

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ugochukwu Mmaduekwe

  1. Ugochukwu Mmaduekwe

    In-App Clipboard

    @Attila Kovacs you might have to end up writing your own app specific clipboard because the Windows clipboard content is accessible to all running programs.
  2. Ugochukwu Mmaduekwe

    New section for native apps

    @Fr0sT.Brutal can you please explain what you mean by "unclear perspectives" in relation to dart?
  3. Ugochukwu Mmaduekwe

    Sending Email via GMail Using OAuth 2.0 via Indy

    Hi all. Does anyone have some sample code on how I can send email from Gmail in my Delphi App using OAuth 2.0 via Indy? Thanks.
  4. Hi all, So I recently upgraded my Android SDK Version to 25.2.5 from 24.3.3 (the stock version in Tokyo). I also updated my JDK version from JDK 1.8U60 ( the Tokyo stock version) to 9.0.1 because I needed to use IntellijIDEA and my problem started. My Android FMX projects refuses to compile, I have even tried a blank form yet I get the error below The annoying thing is that my Window Path contains the path to the JDK System Environment Variable Any help is appreciated, I have been stuck on this for over 12 hours now and have tried everything I could see on the internet (stackoverflow) yet no progress. Screenshots of MY SDK Settings are attached below
  5. Ugochukwu Mmaduekwe

    RAD Studio 10.3.3 now available

    You can give Lazarus and FreePascal a try, at least that's what I do these days.
  6. Ugochukwu Mmaduekwe

    RAD Studio 10.3.3 now available

    This is not the ISO based installer. This is the web based one instead.
  7. Ugochukwu Mmaduekwe

    RAD Studio 10.3.3 now available

    No but I assumed since this is the last major update before a new major version (10.4), they might wish to surprise the community. :wishfulthinking:
  8. Ugochukwu Mmaduekwe

    RAD Studio 10.3.3 now available

    Does anyone know if a community edition of 10.3.3 will be released?
  9. Ugochukwu Mmaduekwe

    Sending Email via GMail Using OAuth 2.0 via Indy

    The problem with application password is that it requires 2FA setup which in turn forces you to authenticate each login even though it's for something as trivial as sending mails from your app.
  10. Ugochukwu Mmaduekwe

    Sending Email via GMail Using OAuth 2.0 via Indy

    @Geoffrey Smith, thanks a lot for this. I really appreciate. Will test it once I get to my workstation. Thanks once again.
  11. Ugochukwu Mmaduekwe

    Shellexecute @ UBUNTU platform

    Here is an attempt by someone to implement FPC awesome TProcess in Delphi. May be someone else can work on extending it with Linux support.
  12. Ugochukwu Mmaduekwe

    Sending Email via GMail Using OAuth 2.0 via Indy

    Any help please? @Remy Lebeau
  13. Ugochukwu Mmaduekwe

    Is Embarcadero a jigsaw puzzle game?

    Only if you use the web installer. The ISO installer has always contained the Delphi and C++ Builder Installers in one.
  14. Ugochukwu Mmaduekwe

    AES Encryption - FMX

    Note the key word free in the original poster question.
  15. Ugochukwu Mmaduekwe

    AES Encryption - FMX

    Have you tried CryptoLib4Pascal ?
  16. Ugochukwu Mmaduekwe

    Recommended Cryptographic Library

    Correct me if I am wrong but this will require him to port the headers first of all because the ones I see online are not crossplatform?
  17. Ugochukwu Mmaduekwe

    Recommended Cryptographic Library

    Hi Ivana and welcome to the forum. To answer your question, CryptoLib4Pascal is the complete package and more. The hashes you requested and more can be found here sample for generating Key Pairs with Elliptic curves, signing and verifying can be found here and here AES and Chacha20 sample here Perks of CryptoLib4Pascal Constantly developed and improved Cross Platform and Cross Compiler support used in the real world on various products uses the friendly MIT License Best of all, it's free.
  18. Ugochukwu Mmaduekwe


    NumCPULib4Pascal is a Cross Platform Pascal library to query the number of CPUs (Logical (logical processors) and Physical (cores)) on a machine. Usage Add NumCPULib to uses clause: uses NumCPULib; var lcc, pcc: Int32; begin // count logical cpus (aka logical processors) lcc := TNumCPULib.GetLogicalCPUCount(); // count physical cpus (aka cores) pcc := TNumCPULib.GetPhysicalCPUCount(); end; What is the difference between the existing System.CPUCount and NumCPULib4Pascal? 1. System.CPUCount only reports the LogicalCPU Count (aka logical processors), it has no option to report the PhysicalCPU Count (cores). 2. System.CPUCount will not report the correct value on windows systems with more than 64 logical processors. NumCPULib4Pascal fixes this by querying GetLogicalProcessorInformationEx on these OSes. GitHub Repository NumCPULib4Pascal
  19. Ugochukwu Mmaduekwe


    if you use Berlin upwards, you can use the inbuilt version found here else you can try the code below. you will need this library though program SimpleHMAC; uses SysUtils, HlpHashFactory; var param_str, secret, sign: string; begin try secret := 't7T0YlFnYXk0Fx3JswQsDrViLg1Gh3DUU5Mr'; param_str := 'api_key=B2Rou0PLPpGqcU0Vu2&leverage=100&symbol=BTCUSD&timestamp=1542434791000'; sign := THashFactory.THMAC.CreateHMAC(THashFactory.TCrypto.CreateSHA2_256(), TEncoding.UTF8.GetBytes(secret)).ComputeString(param_str, TEncoding.UTF8).ToString(); WriteLn(LowerCase(sign)); ReadLn; except raise; end; end.
  20. Well, have you tried Mormot's implementation? https://github.com/synopse/SynPDF/blob/master/SynCrypto.pas You can also try HashLib4Pascal if you want. https://github.com/Xor-el/HashLib4Pascal/ Also you can try out Wolfgang Ehrhardt aka Gammatester (RIP) excellent Hash libraries which contains HMAC implementations too. http://www.wolfgang-ehrhardt.de/crchash_en.html These are guaranteed to work on Delphi 2010 and above and don't require any external DLLs for as long as I remember.
  21. @Clément, To be sincere, I tend to keep pointer constructs to a minimum (to be on the safe side) since the size of integers varies on a various platforms supported by Delphi. Also any reason why you reimplemented HMAC when it is supported in modern Delphi versions?
  22. Ugochukwu Mmaduekwe

    The Android 64bit deadline warnings have started

    Well I use Lazarus on Windows and Linux and it is quite stable (especially on Linux), I think the issue you are experiencing may be related to just Mac OSX. Can you try to install the trunk version using fpcdeluxe? Your issue might have been fixed there.
  23. Ugochukwu Mmaduekwe

    The Android 64bit deadline warnings have started

    32 or 64bit Lazarus? Trunk or stable release?
  24. Inline is a way to hint the compiler to avoid calling a method and instead take the contents of that method and place it at the call site.
  25. Ugochukwu Mmaduekwe

    Win XP app fails to start -- missing bcrypt.dll

    This might have something to do with newer OpenSSL Dlls switching from using the Legacy CryptoAPI to using BCryptGenRandom for generating OS Random numbers.