Exemple #1
0
 def decode(self, wallet, message):
     password, iv, wallet_id = self.wallets[wallet]
     decoded = base64.b64decode(message)
     decrypted = aes_decrypt_with_iv(password, iv, decoded)
     return decrypted.decode('utf8')
Exemple #2
0
 def decode(self, account: AbstractAccount, message):
     password, iv, wallet_id = self._accounts[account]
     decoded = base64.b64decode(message)
     decrypted = aes_decrypt_with_iv(password, iv, decoded)
     return decrypted.decode('utf8')