Unless otherwise noted, the password for all example hashes is hashcat
| Hash-Mode | Hash-Name | Example |
|---|---|---|
| 0 | MD5 | 8743b52063cd84097a65d1633f5c74f5 |
| 10 | md5($pass.$salt) | 01dfae6e5d4d90d9892622325959afbe:7050461 |
| # Multiplication table (from 1 to 10) in Python | |
| num = int(input("Please enter the value: ")) | |
| # To take input from the user | |
| # num = int(input("Display multiplication table of? ")) | |
| # Iterate 10 times from i = 1 to 10 | |
| for i in range(1, 11): | |
| print(num, 'x', i, '=', num*i) |
| # Program to check if a number is prime or not | |
| num = 29 | |
| # To take input from the user | |
| #num = int(input("Enter a number: ")) | |
| # define a flag variable | |
| flag = False |
| num = int(input("Enter a number: ")) | |
| if (num % 2) == 0: | |
| print("{0} is Even".format(num)) | |
| else: | |
| print("{0} is Odd".format(num)) |
| num = float(input("Enter a number: ")) | |
| if num >= 0: | |
| if num == 0: | |
| print("Zero") | |
| else: | |
| print("Positive number") | |
| else: | |
| print("Negative number") |
| num = float(input("Please eneter a value: ")) | |
| if num >0: | |
| print("Positive") | |
| elif num < 0: | |
| print("negative") | |
| else: | |
| print("zero") |
| Import random | |
| Random_side = random.randint(0,1) | |
| if random_side == 1: | |
| print(“Heads”) | |
| else: | |
| print(“Tails”) |
| # Python Program to convert temperature in celsius to fahrenheit | |
| # change this value for a different result | |
| celsius = float(input("Please enter the value: ") ) | |
| # calculate fahrenheit | |
| fahrenheit = (celsius * 1.8) + 32 | |
| print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit)) |
| # Python Program to convert temperature in celsius to fahrenheit | |
| # change this value for a different result | |
| celsius = 37.5 | |
| # calculate fahrenheit | |
| fahrenheit = (celsius * 1.8) + 32 | |
| print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit)) |
| # import random | |
| import random | |
| # prints a random value from the list | |
| list1 = [1, 2, 3, 4, 5, 6] | |
| print(random.choice(list1)) |