googled around for a bit and I couldn't find any documentation on this...but you could test it yourself pretty easily....just create a loop that generates GUID's and then cut the GUID down to 15 chars (since you know that is your max.)..encrypt it...then do a char count on each of the encrypted strings
Main Topics
Browse All Topics





by: Razzie_Posted on 2007-02-14 at 06:43:21ID: 18531479
Hi Tony,
If I unsderstand your question, you want to know what the maximum lenght of an encrypted string can be? To my knowledge, there is no maximum length of encrypted strings. The max length of a string is the max length of the string object's memory, which is 2 GB. In theory.
If you just wanted to know what the length of the encrypted string will be if you encrypt a string with a length varying from 1 to 15 chars, then I doubt you can 'predict' that. You should just call the String.Length property of the encrypted string.
HTH,
Razzie