Page 1 of 1
SSH DACDemo
Posted: Thu 10 May 2018 12:46
by kaffeburk
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
Re: SSH DACDemo
Posted: Thu 10 May 2018 15:03
by ViktorV
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
Posted: Tue 29 Jun 2021 06:51
by amerci
ViktorV wrote: ↑Thu 10 May 2018 15:03
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.
Hi ViktorV,
This 'global Random object' you refer to.....
Is that a Delphi global object or a SecureBridge global object?
Thanks.
- Adrian.
Re: SSH DACDemo
Posted: Tue 29 Jun 2021 12:08
by YanishevskiyVI
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
Re: SSH DACDemo
Posted: Wed 30 Jun 2021 17:06
by amerci
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:
Code: Select all
DynamicArray<Byte> dna;
dna.Length = 512; //or whatever length/strength you need
//fill dna with random bytes
Scbridge::Random->Randomize(dna);
Thanks again.
- Adrian
Re: SSH DACDemo
Posted: Fri 02 Jul 2021 10:55
by YanishevskiyVI
Hi Adrian,
Yes, you are totally right.
Many thanks for explanation and we are very appreciated your help and contribution.
Vitaliy
Devart team