Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Does Records Center use an MD5 hash and how?

  Asked By: Tracie    Date: Apr 28    Category: Sharepoint    Views: 1029

When you send a document to the Records Center, an underscore plus 6
character alphanumeric code gets appended. i.e. "New Test Document"
becomes "New Test Document_CSQN86"
One thought was that this was some sort of MD5 hash. Is this correct?
If so can you find out how it is computed?
If not, is there an MD5 hash involved in sending things to Records
Center? If so where is it and how is it used?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Timothy Hall     Answered On: Apr 28

The code  that gets added to the end of a record in the records  center
is a randomly generated code used for tracking versions of documents
that value is not  configurable.

 
Answer #2    Answered By: Ian Powell     Answered On: Apr 28

Is it an MD5 Hash?
What kind of mechanism randomly generates it?

 
Answer #3    Answered By: Osvaldo Winters     Answered On: Apr 28

The records  Center does not  use an MD5 hash. It simply appends an
identifier to ensure that the official record name is unique. The
code that gets added to the end of a record in the records center  is
a randomly generated code  used for tracking versions of documents
that value is not configurable.
It uses the following code to generate the identifier:
Public class UniqueExtension
{
// Fields
private static int cchDigits = 6;
private static Random rand = new Random((int)
DateTime.Now.Ticks);
private static string Separator = "_";
// Methods
public static string GetUniqueExtension()
{
StringBuilder builder = new
StringBuilder(Separator);
for (int i=0; I < cchDigits; i++)
{
uint num2 = (uint)
rnad.Next(0x24);
if (num2 >= 10)

builder.Append((char) (0x41 + (num2 – 10)));
else

builder.Append(num2);
}
string text = builder.ToString();
return text;
}
}

 
Didn't find what you were looking for? Find more on Does Records Center use an MD5 hash and how? Or get search suggestion and latest updates.




Tagged: