Skip to content

Instantly share code, notes, and snippets.

View cdduarte's full-sized avatar

Christopher Duarte cdduarte

View GitHub Profile
#######################################################################################################################
# Authors: Christopher Duarte, Kenneth Brenner #
# Porject: Lab1 #
# Program: lab1.py #
# Class: IST 600, Scripting Foundations #
# Instructor: Professor Paul Morarescu #
# Date: 16SEPTEMBER2013 #
#=====================================================================================================================#
# Lab 1
#######################################################################################################################
# Authors: Christopher Duarte, Kenneth Brenner #
# Porject: Lab2 #
# Program: lab2.py #
# Class: IST 600, Scripting Foundations #
# Instructor: Professor Paul Morarescu #
# Date: 07October2013 #
#=====================================================================================================================#
# Lab 2
#===========================================================
#title :keys.py
#description :This module will provide keys for encrypting and
# decrypting a txt file.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
# Import modules
#===========================================================
#title :encrypter.py
#description :This module will encrypt or decrypt a string.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
def encryptString(s, key):
''' Encrypts string s using the provided key. Returns the encrypted string.
#===========================================================
#title :caesar.py
#description :This will decrypt a caesar file.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
# Import modules
import string
#===========================================================
#title :keys.py
#description :This module will provide keys for encrypting and
# decrypting a txt file.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
# Import modules
#===========================================================
#title :encrypter.py
#description :This module will encrypt or decrypt a string.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
def encryptString(s, key):
''' Encrypts string s using the provided key. Returns the encrypted string.
#===========================================================
#title :caesar.py
#description :This will decrypt a caesar file.
#authors :Kenneth Brenner, Christopher Duarte
#date :29OCT2013
#python_version :2.7.5
#===========================================================
# Import modules
import string
#===========================================================
#title :square.py
#description :This function will print a square
#authors :Christopher Duarte
#date :06DEC2013
#python_version :2.7.5
#===========================================================
def square():
a = raw_input("Enter size:")
#===========================================================
#title :currencyConverter.py
#description :This function will convert currency.
#authors :Christopher Duarte
#date :06DEC2013
#python_version :2.7.5
#===========================================================
def currency_converter():
a = raw_input("Enter USD amount:")