secure webview

sanjibnanda

Active Member
Licensed User
Longtime User
great ! it works, the decrypted html index file is loaded, but the associated js and other resources are loaded as they reside in asset folder. How come i should proceed that so that the decrypted index file (from File.DirInternalCache) could assess the relevant resources that lie in asset folder?

sanjib
 
Upvote 0

sanjibnanda

Active Member
Licensed User
Longtime User
edited....sorry for correction read * too
great ! it works, the decrypted html index file is not* loaded, but the associated js and other resources are loaded as they reside in asset folder. How come i should proceed that so that the decrypted index file (from File.DirInternalCache) could assess the relevant resources that lie in asset folder?

sanjib
 
Upvote 0

sanjibnanda

Active Member
Licensed User
Longtime User
Extra character in WriteObject

I encrypted a JavaScript file as "dimsd.dat" with RandomAccessFile and then decrypted it as "dimsd.js",

Dim raf As RandomAccessFile
Dim raf1 As RandomAccessFile
raf.Initialize(File.DirRootExternal, "dimsd.dat", False)

fileIt = raf.ReadEncryptedObject(password, raf.CurrentPosition)
Log(fileIt)
raf1.Initialize(File.DirRootExternal, "dimsd.js", False)
raf1.WriteObject(fileIt, False, raf.CurrentPosition)
raf.Close

while using WriteObject to sdcard it has some extra characters in start of file as follows

original

function Question (qname, type, qstring, response, comment, corrects,explan,……..}

decrypted

aaafunction Question (qname, type, qstring, response, comment, corrects,explan,……..}

See some junk characters in start of file .
The Log(fileIt)is true copy but the written file on sdcard has above junk characters.

What can be the issue?
plz help
 
Upvote 0
Top