Hi all,
I have a B4J Server that runs an encrypt/decrypt routine while send/receive data
Also, I have a B4i App that do exactly the same and comunicate with the B4j server.
The Encrypt/Decrypt routines for B4J are:
The Encrypt/Decrypt routines for B4i are:
If I take out the Encrypt/Decrypt routines everything works great but including those routines it does not work
Can anyone help me? please
Many thanks to take the time to read my thread
I have a B4J Server that runs an encrypt/decrypt routine while send/receive data
Also, I have a B4i App that do exactly the same and comunicate with the B4j server.
The Encrypt/Decrypt routines for B4J are:
B4X:
Public Sub EncryptText(text As String) As String
Dim c As B4XCipher
Dim su As StringUtils
Return su.EncodeBase64(c.Encrypt(text.GetBytes("utf8"), "Manolito10"))
End Sub
Public Sub DecryptText(EncryptedData As String) As String
Dim c As B4XCipher
Dim su As StringUtils
Dim b() As Byte = c.Decrypt(su.DecodeBase64(EncryptedData), "Manolito10")
Return BytesToString(b, 0, b.Length, "utf8")
End Sub
The Encrypt/Decrypt routines for B4i are:
B4X:
Public Sub EncryptText(text As String) As String
Dim c As Cipher
Dim su As StringUtils
Return su.EncodeBase64(c.Encrypt(text.GetBytes("utf8"), "Manolito10"))
End Sub
Public Sub DecryptText(EncryptedData As String) As String
Dim c As Cipher
Dim su As StringUtils
Dim b() As Byte = c.Decrypt(su.DecodeBase64(EncryptedData), "Manolito10")
Return BytesToString(b, 0, b.Length, "utf8")
End Sub
If I take out the Encrypt/Decrypt routines everything works great but including those routines it does not work
Can anyone help me? please
Many thanks to take the time to read my thread