Hi all,
First post
I am trying to execute the following code (which works with other programming languages PHP, C etc), but i cannot get a return in B4J, help is appreciated!
First post
I am trying to execute the following code (which works with other programming languages PHP, C etc), but i cannot get a return in B4J, help is appreciated!
B4X:
Dim s_input As String ="2008-03-10;2008-03-10T15:58:00;FT 1/1;28.07;"
'Dim s_query As String = "/c echo.|set/p=" +Chr(34) + s_input + Chr(34) + " | openssl dgst -sha1 -sign chave_privada.txt | openssl enc -A -base64"
'params.Add("/c echo. | set /p=" & Chr(34) & s_input & Chr(34) &" | openssl dgst -sha1 -sign chave_privada.txt | openssl enc -A -base64")
Log("/c echo.|set /p=" & Chr(34) & s_input & Chr(34) &" | openssl dgst -sha1 -sign chave_privada.txt | openssl enc -A -base64")
params.Add("/c")
params.Add("echo.|set")
params.Add(".|")
params.Add("set")
params.Add("/p=" & Chr(34) & s_input & Chr(34))
params.Add("|")
params.Add("openssl")
params.Add("dgst")
params.Add("-sha1")
params.Add("-sign")
params.Add("chave_privada.txt")
params.Add("|")
params.Add("openssl")
params.Add("enc")
params.Add("-A")
params.Add("-base64")
shl.Initialize("shl", "cmd.exe", params)
shl.WorkingDirectory = File.DirApp
Try
' Run with disabled timeout
shl.Run(-1)
Catch
Log(LastException.Message)
End Try