|
-
Dec 14th, 2007, 12:44 PM
#1
Would you hardcode a Rot13 string in a DLL?
What do you think, if you were doing Rot13, would you do something like this:
Code:
string abFrom = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
string abTo = "NOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLM";
Or would you generate the respective strings as shown, for example, on this page? http://www.osix.net/modules/article/?id=70
The merits and demerits of Rot13 are not being discussed here, it's just a matter of... if it's an encoding-decoding mechanism as simple as Rot13, would you simply hardcode it or generate it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|