Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
import os import time #1 from itertools import izip, cycle def xor_crypt_string(data, key): return ''.join(chr(ord(x) ^ ord(y)) for (x,y) in izip(data, cycle(key))) my_key= "firefly" for f in os.listdir(dir): filename = f str_filename = str(filename) #1 encrypted = xor_crypt_string(str_filename, my_key) print ("current file = %s >> encrypt = %s " % (str_filename, encrypted)) os.rename(dir + "\\" + f, dir + "\\"+str(encrypted)+".txt") raw_input()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.