Answer the question
In order to leave comments, you need to log in
Miranda + installer + jabber + password =?
There is a Jabber server (on the local network). you need to make a customized Jabber client for local network users.
The eye fell on Miranda, because you can put her in the right position. But I ran into a nuance.
Task: it is necessary that during the installation of the program the user enters his login / password from the dubber account, then the configured miracle is launched.
How to push the encrypted password into the config (.ini file)? What kind of encryption is used in Miranda (more precisely, how does Miranda encrypt passwords)?
Answer the question
In order to leave comments, you need to log in
During installation, open Miranda programmatically, bring the password entry window to the desired state (clean it from unnecessary controls and rename it). The user enters a password, Miranda saves it in the config. Then you kill Miranda.
You can run an already installed instance, you can create a folder at a pace and put a version of Miranda without frills in it, and then copy the config where you need it. This option is good because if you then need to rebuild the installer for a new version, you will not have to worry.
Do not forget to insure: when installing, check the box "do not enter a password right now." If for some reason it does not work, the user will be able to install Miranda without entering a login-password.
Yes, yes, yes, I know what a disgusting crutch it is :) Use it only when there are no options left at all.
Not sure if this is still the case:
Miranda Password Encryption and it's Decryption Operation
Miranda uses simple encryption algorithm with simple maths to cryptize the password from the spying eyes. For all protocols except Jabber it uses common algorithm to encrypt the password.
In this simple encryption mechanism, Miranda adds the magic number 5 to each character in the password to encode it and then stores into the profile file.
Here is the simple decryption mechanism for all protocols (except Jabber) supported by Miranda
for(int i=0; i<PasswordLength; i++)
{
clearPassword[i] = encryptedPassword[i]-5;
}
For Jabber protocol (as per version v0.9.10) it uses XOR based encoding algorithm using the magic number 0xC3 to secure the password, Here is the decryption algorithm for the Jabber Protocol
for(int i=0; i<PasswordLength; i++)
{
clearPassword[i] = encryptedPassword[i] ^ 0xC3;
}
On completion of the above operation with those magic numbers, you will have the secret in your hands!
Nothing has changed (file plugins/dbrw/utils.c):
#define DBRW_ROT 5
INT_PTR utils_encodeString(WPARAM wParam,LPARAM lParam) {
char *msg = (char*)lParam;
int i;
for (i=0; msg[i]; i++) {
msg[i] = msg[i] + DBRW_ROT;
}
return 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question