Lines Matching refs:password

23 //   Based on an IMEI and serverId input, the algorithm for generating the OMADM client password 
24 // and server password actually has following three steps,
26 // Step 1 Generate the client password key and server password key:
32 // It defines a client password dictionary and a server password dictionary which contain
33 // 15 numbers, we use client password dictionary to generate client password key and server
34 // password dictionary to generate server password key. Suppose IMEI string length is n, for
42 // Hence we get a password KEY which is Serial1+"-"+Serial2.
47 // which is always 10 characters, then we get a temporary password which is md5key+newImei.
49 // Step 3 Shuffle the temporary password:
50 // The last step is to shuffle the temporary password got from Step 2.
51 // Since the password length is 16 and n is the length which is equal to 16,
53 // temporary password string, we do following shuffle,
59 // Do the same shuffle three times, then after third time shuffle we get the password which
84 * Initialize all the client/server password dictionaries and other values.
109 * Sets the sever ID for password generation
129 * Sets the IMEI for password generation
167 * Generate a client password key with a predefined client password dictionary
171 * @return the client password key
178 * Generate a server password key with a predefined server password dictionary
182 * @return the server password key
189 * Generate a client password using a generated client password key, the IMEI, and
192 * @return the client password
196 char * password = generatePassword(imei, serverId, key);
203 return password;
207 * Generate a server password using a generated server password key, the IMEI, and
210 * @return the server password
214 char * password = generatePassword(imei, serverId, key);
221 return password;
225 * Generate a client password using a generated client password key, the IMEI, and
230 * @return the client password
234 char * password = generatePassword(imei, serverId, key);
241 return password;
245 * Generate a server password using a generated server password key, the IMEI, and
250 * @return the server password
254 char * password = generatePassword(imei, serverId, key);
261 return password;
265 * Generate a key with given IMEI and password dictionary.
273 * Hence we get a password KEY which is Serial1+"-"+Serial2.
276 * @param dict[] a password dictionary
277 * @return a password key
452 * Generate a password with given IMEI, serverID, and key.
455 * which is always 10 characters, then we get a temporary password which is md5key+newImei.
456 * Finally, we shuffle the temporary password three time.
460 * @param key the key needs to generate password
461 * @return a password
512 char * password = (char *) DmAllocMem(sizeof(char) * ( PWLength + 1));
513 memset( password , '\0', (sizeof(char) * ( PWLength + 1 ) ) ); //this will be of 16 + 1
515 DmStrcpy( password , MD5DigestStr );
516 DmStrcat( password , (const char *)IMEI36 );
527 shuffle(*password);
528 shuffle(*password);
529 shuffle(*password);
531 return password;