Carracho protocol: Difference between revisions
From Hotline Wiki
Jump to navigationJump to search
(code example for password crypt) |
No edit summary |
||
| Line 4: | Line 4: | ||
= Passwords = | = Passwords = | ||
Instead of XORing every character of a password by 255, Carracho encrypts the password marginally better with modulo and XORing, with the additional step of hashing the encrypted password with the MD5 algorithm. | Instead of XORing every character of a password by 255, Carracho encrypts the password marginally better with modulo and XORing, with the additional step of hashing the encrypted password with the MD5 algorithm. | ||
void | void EncryptDecryptPassword(char *ioText) | ||
{ | { | ||
if (!ioText) | if (!ioText) | ||
Revision as of 22:58, 2 May 2025
Protocol overview
Carracho was a non-compatible Hotline clone built around Apple and Mac exclusivity between 1998 and 2004 by Jorn and Mirko Hartmann. It provides everything the Hotline protocol offers, but in its own way: chatrooms, file sharing, threaded news, etc. The only real features it provides that differs from Hotline are custom user icons and slightly better password encryption.
Passwords
Instead of XORing every character of a password by 255, Carracho encrypts the password marginally better with modulo and XORing, with the additional step of hashing the encrypted password with the MD5 algorithm.
void EncryptDecryptPassword(char *ioText)
{
if (!ioText)
return;
size_t length = strlen(ioText);
for (size_t i = 0; i < length; ++i)
switch (i % 3)
{
case 0:
ioText[i] ^= 0x88;
break;
case 1:
ioText[i] ^= 0x44;
break;
case 2:
ioText[i] ^= 0x12;
break;
}
}