Skip to content

Commit

Permalink
bug fix for "error on decrypt process tweksteen#1" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ysrc26 committed Nov 5, 2015
1 parent a2d4725 commit a1c76ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions decrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def main():
usage()

master_key = open(sys.argv[1]).read()
hudson_secret_key = open(sys.argv[2]).read()

hudson_secret_key = open(sys.argv[2], 'rb').read()
hashed_master_key = sha256(master_key).digest()[:16]
o = AES.new(hashed_master_key, AES.MODE_ECB)
x = o.decrypt(hudson_secret_key)
Expand Down

0 comments on commit a1c76ef

Please sign in to comment.