Android Question RandomAccessFile Password

Scantech

Well-Known Member
Licensed User
Longtime User
Can i unlock a File that was password protected by B4A RandomAccessFile with B4J RandomAccessFile?
 

mangojack

Well-Known Member
Licensed User
Longtime User
Have you tried ... you might answer your own question.
 
Upvote 0

Scantech

Well-Known Member
Licensed User
Longtime User
I get some kind of error. It does not point me out to which line. I'll post error later on
 
Upvote 0

Scantech

Well-Known Member
Licensed User
Longtime User

B4X:
Sub ListView1_SelectedIndexChanged(Index As Int)
    Log(Index)
    Log(ListView1.Items.Get(Index))
    
    Dim raf As RandomAccessFile
    raf.Initialize("D:\B4J Projects\Decode Debug Log\DebugLog\", ListView1.Items.Get(Index), False)
    Dim logBuild As StringBuilder
    logBuild.Initialize

    logBuild = raf.ReadEncryptedObject("somepassword", raf.CurrentPosition)
    raf.Close
    
    File.WriteString("D:\B4J Projects\Decode Debug Log\DebugLog\Decoded\", ListView1.Items.Get(Index), logBuild.ToString)
    
    
    
End Sub

Well it does not work for me. I have same password on b4a and b4j?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…