Jump to content

Talk:RSA code: Difference between revisions

Line 9:
 
:: OK, things are starting to look better. We still lack a description of what the task ''is'' though! I guess it's to do the encryption and decryption (with fixed trivial keys?) and not to do key generation; the latter is much more computationally expensive and doesn't serve as an introduction to this area of cryptography. –[[User:Dkf|Donal Fellows]] 07:26, 2 April 2011 (UTC)
 
===Split the task?===
 
:::And given that the task seems to be about doing RSA, does the Python example really need a hundred lines of UI? [[User:Pjt33|Pjt33]] 12:56, 2 April 2011 (UTC)
Line 22 ⟶ 24:
::: If blocking is arbitrary, perhaps blocking should be removed from the task description? The Python implementations currently use a block size of 1 character, and the blocking code adds some significant complexity, so why not just get rid of it? --[[User:Rdm|Rdm]] 11:45, 22 April 2011 (UTC)
 
::::I've been thinking about this and I see two tasks here. Let me explain. (I added the subtitle above)
 
:::::RSA should be about encryption/decryption. The problem is the demonstration numbers are too small for multiple ascii characters. Finding one or two sets of larger numbers would allow for this and remove the need for the blocking and some of the resulting constraints. RSA has no problem with zeros. Nor does it char about ascii, ebcdic, double-byte, etc. RSA also requires bignum support so having some numbers that exercise that would make sense. I was poking around looking for some, thinking of the smaller RSA challenges (140 bit) but haven't yet found the whole set of numbers. I think running a test message through a couple of different RSA key pairs would make a fine task. Perhaps generating some small keys would be a good sister task.
 
:::::: Some links.
:::::: [http://cisnet.baruch.cuny.edu/holowczak/classes/9444/rsademo/ | demojava key generationgen demo]
:::::: [http://shop-js.sourceforge.net/crypto2.htm | js key gen demo]
 
:::::Character blocking/unblocking could be a whole other task. In fact we could clone the page and mark everything needs improvement (get the rsa out). This task needs more specification. The example text would encode ha as 0801 which is a character set size of 100 not the 31 or 32 shown. I think some of the code examples used base 30ish. This kind of task is common but unrelated to encryption. Older operating systems used to encode characters in 6 rather than 8 bits yielding 4 characters per 3 bytes, printable mappings as well.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.