<s> from Crypto . PublicKey import RSA <EOL> from Crypto . Cipher import PKCS1_v1_5 <EOL> import json <EOL> import base64 <EOL> privateKeyFile = open ( "<STR_LIT>" , "<STR_LIT:r>" ) <EOL> key = RSA . importKey ( privateKeyFile . read ( ) ) <EOL> cipher = PKCS1_v1_5 . new ( key ) <EOL> privateKeyFile . close ( ) <EOL> credsFile = open ( "<STR_LIT>" , "<STR_LIT:r>" ) <EOL> credsData = json . load ( credsFile ) <EOL> credsFile . close ( ) <EOL> print "<STR_LIT>" <EOL> for creds in credsData : <EOL> piecesJSON = cipher . decrypt ( base64 . b64decode ( creds [ '<STR_LIT>' ] ) , <NUM_LIT:0> ) <EOL> if not piecesJSON : <EOL> print "<STR_LIT>" <EOL> exit ( <NUM_LIT:1> ) <EOL> pieces = json . loads ( piecesJSON ) <EOL> username = unicode ( base64 . b64decode ( pieces [ <NUM_LIT:0> ] ) , "<STR_LIT:utf-8>" ) <EOL> password = unicode ( base64 . b64decode ( pieces [ <NUM_LIT:1> ] ) , "<STR_LIT:utf-8>" ) <EOL> print "<STR_LIT:U+002C>" . join ( [ creds [ '<STR_LIT:host>' ] , username , password ] ) </s>
