I'm trying to encrypt a file with WriteEncryptedObject, my code is:
It create "secret.dat" but the file size is only 37 bytes.
I know something wrong but I can't figure out :sign0104:
B4X:
Dim output, input As RandomAccessFile
input.Initialize(File.DirRootExternal, "normal.txt", True)
output.Initialize(File.DirRootExternal, "secret.dat", False)
output.WriteEncryptedObject(input, "some secret password", output.CurrentPosition)
input.Close
output.Close
It create "secret.dat" but the file size is only 37 bytes.
I know something wrong but I can't figure out :sign0104: