#! /usr/bin/env python3 
# utf-8 


# importing Hashs  
import hashlib 
from hashlib import md5

# imports sys related 
import os, sys
import subprocess
from os import system, name
from time import gmtime, strftime, sleep 
from sys import argv

# EX
from zlib import *
import socket 
import random 
import glob 
import base64 
import getpass 
from colorama import * 




# path for decrypting
def dec():
     print(RED +'''
        {1} -- DES
        {2} -- ALLEGED RC4
        {3} -- RC4
        {4} -- RC5 
        {5} -- DIAMOND 
        {6} -- IDEA
        {7} -- LOKI91
        {8} -- REDOC III 
        {9} -- SAPPHIR
                        ''')
    


HEADER = '\033[95m'
IMPORTANT = '\33[35m'
NOTICE = '\033[33m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
RED = '\033[91m'
END = '\033[0m'
UNDERLINE = '\033[4m'
LOGGING = '\33[34m'

color_random=[HEADER,IMPORTANT,NOTICE,OKBLUE,OKGREEN,WARNING,RED,END,UNDERLINE,LOGGING]
random.shuffle(color_random)
mushlogo = color_random[0] + '''
           __  _____  _______ 
   / |  / / / / / ___// / / /
  / /|_/ / / / /\__ \/ /_/ / 
 / /  / / /_/ /___/ / __  /  
/_/  /_/\____//____/_/ /_/         
'''

mushprompt = "mush ~# "
class mush:
        print(mushlogo + RED + ''' 
        [*] The Quiter You Become, The More You Are Able To Hear! 
        [!] Mush is a multiple hashing/encrypting tool. ENJOY hashing/encrypting things! 
        ''' + END +'''
        {1} -- HASHING 
        {2} -- ENCRYPTING
        {3} -- DECRYPTING 
        {4} -- ABOUT  \n


        ''')
        choice = input(mushprompt) 
        if choice == "1": 
            hash()
        elif choice == "2": 
            dec()
        elif choice == "3": 
            enc() 
        elif choice == "4": 
            about() 
        else:
            print(RED + "       WRONG ANSWER!!! \n")
            print() 
            mush() 

# path for hashing functions
def hash():
    pass

# decrypting using md5 
def Dmd5():
    string = input("Enter the word/sentence you want to decrypt?\n") 
    result = hashlib.md5(string.encode())

    print("the Hexadecimal equivalent of hash is: ", end="") 
    print(result.hexdigest()) 

def cod(): 
    zz = open("prompts/intro2.txt", "r") 
    zzz = zz.read()
    print(zzz) 
    ol = input("$  ") 
    if ol == 1: 
        Emorse()
    elif ol == 2:
        Ebinary()

   
if __name__=='__main__': 
       try:
          os.system('clear')  
          mush()
       except KeyboardInterrupt: 
           print(" SOMETHIGN WRONG! ...\n") 
           time.sleep(0.25) 
