示例#1
0
 def test_DecryptPri(self):
     data = ('BxqNdggaUsjTf8BEDCLvUy/SdjhC5w49rrZ0lMvQbB'
             '4qXjcTnskImSxY8y1SbhI6lKZKbFKPhT8B2rFNuRdu'
             'DSglhLA/yvUUy7eTndBhELOtgxUL0Oddbw/cWD3HM8'
             'UIgvMc4300H2SJDJnWacjSqLbt5aedV9Ar2GefxUhJ'
             'N/UNnz6thbWsQGwjNL1+zMYf0ePC+M7qYVToPkKXxe'
             'oNaEj1Y3ibQYHsnIx3mXUhDPN1rink/AjAbeNkTXCO'
             'tPGjksKAtD52s9D0DVeSCFH8iA2cye/0MRodSDERpO'
             'bldnRoksZBeQ5p3qx0i++T57706TRAdk0vwcsaYiNe'
             'Yc+Qew==')
     check_data = 'phoneNo=18100000000'
     self.assertEqual(SDKUtil.decryptPri(data), check_data)
示例#2
0
 def decryptData(data, certPath=SDKConfig().signCertPath, certPwd=SDKConfig().signCertPwd):
     return SDKUtil.decryptPri(data, certPath, certPwd)