def main():
hash_for_y_axis()
hash_nums()
#fi = []
#trying to encrypt Issac Asimov's short story, "The Last Question"
#The code below puts each string as an input value in a list
with open("theLastQuestion.txt") as f:
fi = ([word for line in f for word in line.split()])
short_story = np.asarray(fi)
for x in range(0, len(fi)):
map_key(short_story[x]) #the call to map_key assigns ascii values to each character in the short story, preps data
encrypted_message_array = np.empty_like(iterate_list) #iterate is filled in map_key
np_array = np.asarray(iterate_list)
#print(short_story) #contains the story in a numpy array
#print(np_array) # contains the story in ascii
stream = cuda.stream()
with stream.auto_synchronize():
gpu_array = cuda.to_device(np_array, stream)
run_encryption[32,32](gpu_array, encrypted_message_array) #i'm not sure about my griddim and blockdim values...
gpu_array.copy_to_host(encrypted_message_array, stream)
print(encrypted_message_array)