Answer the question
In order to leave comments, you need to log in
Why don't sha1 results match?
Here is a small part of the c++ code:
byte pas[] = "YYYYYYYYYY";
byte hash1[] = "XXXXXXXXXXXXXXXXXXXX";
byte hash2[] = "XXXXXXXXXXXXXXXXXXXX";
SHA1(pas, 10, hash1);
for (int i = 0; i < 20; i++)
printf("%02x ", hash1[i]);
cout << endl;
SHA1(hash1, 20, hash2);
for (int i = 0; i < 20; i++)
printf("%02x ", hash2[i]);
cout << endl;
Answer the question
In order to leave comments, you need to log in
why is that?
Because the same characters correspond to several "codes" that are selected randomly.
For example n=['01','02','03'], p=['10','20',30'], u=['04','05'], a=['40' ,'50'], e = ['06','07','08'], m = ['60',70',80']
and then the word "hello" can be encoded in 324 ways (on n - 3 ways, for p - 3 ways, for and - 2 ways, for c - 2 ways, for y - 3 ways and for t - 3 ways, i.e. 3 * 3 * 2 * 2 * 3 * 3 = 324, simple combinatorics). This is necessary to complicate decryption.
Here are 2 examples of how you can encrypt the word "hello" using my "cipher":
The first thing to check is whether the service cuts to length. Make x's the same length as y's and check again
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question