QSL4A Documentation of
decryptString <QSL4A API Menu>decryptString( srcString )
Decrypt a Base64 String to another Normal / Base64 String,
needs to run droid.cipherInit first .
srcString (String)
return Decrypted String
===== ===== ===== =====
Example :
>>> from androidhelper import *
>>> droid = Android()
>>> droid.cipherInit('1234567890abcdef',encodingFormat='gbk')
Result(id=1, result=None, error=None)
>>> a = droid.encryptString('天气不错')
>>> a # Encryption Result will be different because of Random Initial Vector
Result(id=2, result='EBJ19Nvp4z1Ldo/jTtTn+A==\n', error=None)
>>> b = droid.decryptString(a.result)
>>> b
Result(id=3, result='天气不错', error=None)
===== ===== ===== =====