Hi,
I am having an server which needs to generate a unique RC4 key for each session , share the rc4 key with an viewer and both exchange the data.
The server is running on MAC and hence it is using OpenSSL API to generate the RC4 key . The viewer is using Microsoft Crypt API to decrypt.
Following is the code am using to generate 87 bit rc4 key in MSRC4 format..
unsigned char *buffer;
buffer = (unsigned char *)calloc(1024*4, sizeof(unsigned char));
//NSAssert((buffer != NULL), @"Cannot calloc memory for buffer.");
int j = RAND_bytes(buffer, 1024) ;
int k ;
strcat(_RC4Key, "128 bitL ");
for( k = 0; k < 76; k++)
{
_RC4Key[k+11] = buffer[k];
}
//Send the RC4 key to Windows viewer...
I believe the key is stored in reverse order for MSRC4.
Any inputs will be highly useful.
Thanks
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Generate RC4 Key using OpenSSL ,encrypt/decrypt using MSRC4
-
- Posts: 1
- Joined: 2010-07-13 11:58
Re: Generate RC4 Key using OpenSSL ,encrypt/decrypt using MS
yesI believe the key is stored in reverse order for MSRC4.
you can ask adzm, maker of securevnc so have a lot of knowledge about security or krunge knowledge security and alternate OS linux/unix/mac
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer