|
1
|
I am new to python so I need lots of help on this code basically what it does is takes a decimal number(155) converts it into binary(10011011) takes the first six numbers in that(100110) converts that into a decimal number(38) and from there makes it a letter("m") according to the base64 code (http://email.about.com/cs/standards/a/base64_encoding.htm)
TEST: type in 155162233 (which is 155 162 233 but if you put spaces it messes up the code) you should get 38, 58, 11, 41 HELP NEEDED ON CODE - I need help with taking out spaces if somebody types them into the input field, because that messes up the string numbering - the code needs to be able to change depending on how many numbers are put in, for example right now if you put more than 9 digits in the code it won't process them (check out the "#get additional numbers from Binary" part of the code, it only processes and prints 4 numbers) - something that converts the output numbers (like 38, 58, 11, 41) into letters (like m, 6, L, p) according to the base64 code My base64 encryption ideas came from http://email.about.com/cs/standards/a/base64_encoding.htm so if you don't get base64, check that site out PLEASE Email(phillipmates66@hotmail.com me with any edits, suggestions, or other interesting ideas thanks
Tags: algorithms
|
2 comments
Add a comment
Sign in to comment
Download
Copy to clipboard

Have you tried the base64 module?
Who needs a module?