Sub EncryptText(ff As String, XPASSWORD As String) As Byte()
Dim c As B4XCipher
Return c.Encrypt(ff.GetBytes("utf8"), XPASSWORD)
End Sub
Sub DecryptText(EncryptedData() As Byte, XPASSWORD As String) As String
Dim c As B4XCipher
Dim b() As Byte = c.Decrypt(EncryptedData, XPASSWORD)
Return BytesToString(b, 0, b.Length, "utf8")
End Sub