felix
11-16-2004, 09:06 PM
Hi,
1 - Someone know a good way to store a key (password) in a binary? I need to store this key in the binary with use simetric encription.
So I tested to create a array or define and put the key in it, but if I do a "$strings mybinary" i can see the key in plaintext :cry:
I tryed to store it in hexa "\xhex-number" in arrays or defines, but i yet can see it with strings... :cry:
What is a good way to safe store this constant in a way will not easy to see with strings command or similar?
2 - If i create a thread or a fork() this will always execute the some routine code. I need to create a thread (or something like) that will "open" 2 instances, and each of this instances will execute a different code. For example a kind of createdifferentthread(routineone, routinetwo);
The two routines are completilly different and should be processed in parallel...
Exist a way to do it ? How ?
Thks,
Regards,
1 - Someone know a good way to store a key (password) in a binary? I need to store this key in the binary with use simetric encription.
So I tested to create a array or define and put the key in it, but if I do a "$strings mybinary" i can see the key in plaintext :cry:
I tryed to store it in hexa "\xhex-number" in arrays or defines, but i yet can see it with strings... :cry:
What is a good way to safe store this constant in a way will not easy to see with strings command or similar?
2 - If i create a thread or a fork() this will always execute the some routine code. I need to create a thread (or something like) that will "open" 2 instances, and each of this instances will execute a different code. For example a kind of createdifferentthread(routineone, routinetwo);
The two routines are completilly different and should be processed in parallel...
Exist a way to do it ? How ?
Thks,
Regards,