Jump to content

mikerabat

Members
  • Content Count

    36
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mikerabat

  1. mikerabat

    SysUtils, AnsiString

    Thank you very much much for the great insight!
  2. mikerabat

    SysUtils, AnsiString

    Sorry but can you elaborate that? I actually cannot see how I get there a string converted to a field in the record... what am I missing here?
  3. mikerabat

    SysUtils, AnsiString

    You mean I don't need AnsiCharacters to communicate with a device that only understands Single Byte characters? So... how is that? And tell me then how to use GetBytes to fill a structure like: type TPatData = packed record SurName : Array[0..31] of AnsiChar; FirstName : Array[0..31] of AnsiChar; end; var pat : TPatData; formSurName : String; begin FillChar(pat, sizeof(pat), 0); // code to be filled here.... end;
  4. mikerabat

    SysUtils, AnsiString

    haha... I'd love to but I have file and communication structures that need good old ansi strings. Or do you actually have a better idea than: str8 := UTF8String(SurName); System.AnsiStrings.StrLCopy(@patData.surname[0],PAnsiChar(str8), length(patData.surname)); to bring a normal delphi string (SurName) to a structure (patData) that contains single byte characters?
  5. You can check out: https://github.com/mikerabat/mrmath It provides a set of different random number generators: * Standard delphi ( linear congruential ) * Mersenne Twister * BCrypt (or actually os dependent) * If the cpu supports it: the x86 RDRAND instruction
  6. mikerabat

    FIDO2 and CBOR

    Hi there! There is the C library libFido2 around in form of a dll. I took the liberty to put arround a Delphi library that supports FIDO2 keys around that library including a little project that shows how one could do WebAuthn logins. check out: https://github.com/mikerabat/DelphiFido2 https://github.com/mikerabat/DelphiCBOR for further reading. kind regards Mike
  7. mikerabat

    LINEST function

    Hi! You could use the regression functions from here: https://github.com/mikerabat/mrmath and the regression example from here: http://www.mrsoft.org/home/downloads.html
  8. mikerabat

    Firebird Encryption options

    Hi Folks! I hope anyone can give me some hints on this topic: Firebird Data encryption and encryption of the data sent. Especially the "over the line" encryption of data is going to be mandatory for our next projects since there are a few attack vectors we didn't really anticapte that this would ever be a problem: an attacker has access to an internal network (e.g. a hospital) and reads the communication from between our program and the remote database. So... data encryption ala SSL, TLS would be a great thing to have. So far the FAQ from firebird only suggest to use an SSH tunnel or similar to connect to the database but ... is this feasable or even performant? Has anyone any experience with such a problem or is there anything some Delphi components could do? kind regards Mike
  9. mikerabat

    Firebird Encryption options

    Cool thanks for the info!
  10. mikerabat

    Firebird Encryption options

    Thanks for the hint! I will definitely look into that 🙂
  11. mikerabat

    mrMath matrix library

    Hey guys! I wanted to share my matrix library with you basically it contains tons of function for matrix manipulation (add, sub, mult, inverse) and higher order functions (SVD, CCA, PLS and tons more) The library is highly optimized (handoptimized assembler, AVX, SSE, FMA support) and can be multithreaded. Check out the repository on https://github.com/mikerabat/mrmath and check some tiny examples on: http://www.mrsoft.org/home/downloads.html hope you have fun with that ;) kind regards Mike
×