General Life
editI am a male student from somewhere in the Pacific Ocean, that likes computers, people and languages.
Spare time
editprint("I know some programming languages such as:")
Uselessly complexed Python code to print "Hello, Wikipedia!" To the console
def console_print_string (string_to_print): return(string) to_print = "Hello, Wikipedia!" print(console_print_string(to_print))
Unnecessarily complexed Swift code to print "Hello, Wikipedia!" To the console
func ConsolePrintString (toPrint:String) -> String {
return toPrint
}
var stringToPrint:String = "Hello, Wikipedia!"
print(ConsolePrintString(stringToPrint))
Some HTML Code to display "Hello, Wikipedia" on a webpage
<h1>Hello, Wikipedia!</h1>
Needlessly cumbersome code to print "Hello, Wikipedia" to the console
function printToConsole (StringToPrint) {
console.log(StringToPrint);
}
var string = "Hello, Wikipedia!";
printToConsole(string);
Useless code for CSS positioning of centred, white, Helvetica text in web design of HTML code under the h1 tag.
h1 {
font-family: Helvetica;
color: #ffffff;
text-align: center;
}
Finished Programming Projects
editA simple UI (User Interface) that encrypts a message with a password. The UI has three options (Encrypt, Decrypt and Exit)[1]
The programme uses a few modules:[1]
- tkinter
- hashlib
- Hashing.py (custom module)
The programme will ask the user for a key to encrypt the data with and a message to encrypt. When the user submits the required data to the programme, the programme will hash the key with SHA 512, then the letters in that SHA will be converted to numbers, those numbers put into a list and then the message that’s being encrypted will be translated into unicode, then put into a list, every number in the string messages unicode list is added with every number in the number version of the hash of the user’s key returning a set of numbers which is the user’s encrypted message. The user then has the option to copy the encrypted text’s numbers to the clipboard of the computer.[1]
The programme when submitted an encrypted message, will hash the user’s key convert letters into numbers and add it to an array then the numbers are split into an array and each number in the message’s array has each number in the hash’s array subtracted from it, then the resulting numbers are converted from unicode to a string and returned to the user.[1]
Exit
editCloses the UI and programme.[1]
import Hashing
def enc(a, b, to_enc):
hash_list = []
while True:
hash_value = Hashing.begin_hash(512, a)
hash_confirm = Hashing.begin_hash(512, b)
if hash_value == hash_confirm:
break
else:
return "Passwords do not match"
Hashing in Python I found to be difficult, so I made my own module with functions to make the process easier.[3]
Languages
editI have been learning mandarin for 3 years!
我会说一点中文!
I have spoken English all my life.
I can speak English as it is my native language I can speak it at a high level.
I have recently attempted to learn the French language in recent weeks.
Je Suis garçon
External References
edit- ^ a b c d e f "benjiman75/Encryption_of_text". GitHub. Retrieved 2016-07-26.
- ^ "benjiman75/Encryption_of_text". GitHub. Retrieved 2016-07-26.
- ^ "benjiman75/Custom-Hash-Library-Module". GitHub. Retrieved 2016-07-26.