I need to test a password before I allow viewing of a html file.
I have read threads on encryption and storing objects in random access files ,but I just don't get how this solves the problem if someone was to decompile the app and read code ? ... ie,
Is it just a case of compiling / releasing obfuscated that solves this ?
Thanks and Regards mj
I have read threads on encryption and storing objects in random access files ,but I just don't get how this solves the problem if someone was to decompile the app and read code ? ... ie,
B4X:
Dim MyPassword As String ' = "ABC123" ... OK This is Removed !
'And This ...
' Dim raf As RandomAccessFile
' raf.Initialize(File.DirInternal, "1.dat", False)
' raf.WriteEncryptedObject(MyPassword, "some secret password", raf.CurrentPosition)
' raf.Close
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "1.dat", False)
MyPassword = raf.ReadEncryptedObject("some secret password", raf.CurrentPosition)
raf.Close
If MyPassword = "ABC123" Then .... ' @@@ isnt this defeating the purpose ???
'Open the Safe
Is it just a case of compiling / releasing obfuscated that solves this ?
Thanks and Regards mj