This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| w,h = (256,256) | |
| img = Image.new(mode="RGB", size=(w,h)) | |
| for i in range(w): | |
| for j in range(h): | |
| r,g,b = (i-1,128,j-1) | |
| img.putpixel((i,j),(r,g,b)) | |
| img.save("./output.png") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib # Import the hashlib | |
| htype = input("FILE or TEXT? ").upper() | |
| if htype == "FILE": | |
| filepath = input("Filepath: ") # Asking user for the path to the file | |
| with open(filepath, 'rb') as file: | |
| message = file.read() # Reading the contents to 'me' | |
| file.close() # CLosing the reading | |
| hashtype = input("Hashing? (SHA256, MD5) ").upper() # Ask user for hashing algorythm | |
| elif htype == "TEXT": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, os, time | |
| import tweepy | |
| keys = dict( | |
| consumer_key='_YOUR_CONSUMER_KEY', | |
| consumer_secret='_YOUR_SECRET_KEY', | |
| access_token='_YOUR_ACCESS_TOKEN', | |
| access_token_secret='_YOUR_ACCESS_TOKEN_SECRET' | |
| ) |