Hello,
Im looking into the DacDemo and the Randomform. I do uderstand how the random data is created, but how is it transferred into the SSH client?The FData is not used anywhere outside of the Randomform, what i can see.
Regards, Pär
SSH DACDemo
Re: SSH DACDemo
FData is passed to the Randomize method of the global Random object, which will subsequently generate random data that is used in the SSH protocol during negotiation.
Re: SSH DACDemo
Hi ViktorV,
This 'global Random object' you refer to.....
Is that a Delphi global object or a SecureBridge global object?
Thanks.
- Adrian.
-
- Devart Team
- Posts: 70
- Joined: Wed 02 Jun 2021 09:30
Re: SSH DACDemo
Hi Adrian,
Random - is a global object of SecureBridge.
Also, some helpful and useful information can be found here: https://www.devart.com/sbridge/docs/ind ... random.htm
Vitaliy,
Devart team
Random - is a global object of SecureBridge.
Also, some helpful and useful information can be found here: https://www.devart.com/sbridge/docs/ind ... random.htm
Vitaliy,
Devart team
Re: SSH DACDemo
Thank you so much for your quick reply Vitaliy.
For C++ Builder users, it's:
- Scbridge::Random;
If it helps and C++ Builder users, initialize it like this:
Thanks again.
- Adrian
For C++ Builder users, it's:
- Scbridge::Random;
If it helps and C++ Builder users, initialize it like this:
Code: Select all
DynamicArray<Byte> dna;
dna.Length = 512; //or whatever length/strength you need
//fill dna with random bytes
Scbridge::Random->Randomize(dna);
- Adrian
-
- Devart Team
- Posts: 70
- Joined: Wed 02 Jun 2021 09:30
Re: SSH DACDemo
Hi Adrian,
Yes, you are totally right.
Many thanks for explanation and we are very appreciated your help and contribution.
Vitaliy
Devart team
Yes, you are totally right.
Many thanks for explanation and we are very appreciated your help and contribution.
Vitaliy
Devart team