Skip to content

Commit

Permalink
Update cloud.py
Browse files Browse the repository at this point in the history
  • Loading branch information
subhayuroy authored Nov 6, 2021
1 parent 357df74 commit e81a880
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Implementation of Cloud/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
import enchant # Rainbow tables with enchant
import cloud # importing pi-cloud


def randomword(length):
return ''.join(random.choice(string.lowercase) for i in range(length))


print('Author- Radhika Subramanian')


def mainroutine():
engdict = enchant.Dict("en_US")
fileb = open("password.txt", "a+")
Expand Down Expand Up @@ -53,9 +48,8 @@ def mainroutine():
fileb.write(randomkey3 + " + " + str(whasher3.hexdigest()) + "\n")
fileb.write(randomkey1 + " + " + str(whasher1.hexdigest()) + "\n")


jid = cloud.call(randomword) # square(3) evaluated on PiCloud
cloud.result(jid)
print('Value added to cloud')
print('Password added')
mainroutine()
mainroutine()

0 comments on commit e81a880

Please sign in to comment.