Ewon TechForum
Providing technical solutions to technical requests

MD5 Checksum with BASIC
FromTicket Offline
Junior Member

Is there a way to compute a MD5 checksum from the BASIC of eWON ?

simon Offline
eWON Support
There is no BASIC function to do that.
However, I have found a MD5 library on the Internet to develop that in JAVA.

Since you want to use BASIC to program your eWON, I have added in the JAVA program a simple TELNET server.
The idea is to use an Internal TELNET connection to make the BASIC program communicate to the JAVA program.

So, to use it, just drop the JAVA files (See in MD5.zip) : MD5.jar, MD5.jad and jvmrun in the /usr directory of your eWON and reboot it.
Then in BASIC, use the function "OPEN" to open a socket to the eWON itself. See the below example :
A$ = @MD5$("hello")
Print A$

Function MD5$($string$)
 $buf$ = GET 1
 If ($buf$="#CLOSED#") THEN GOTO $loop
 PUT 1,$string$ + CHR$(13)
 $Result$ = GET 1,100
 PUT 1,"exit" + CHR$(13)
 Close 1
 $MD5$ = $Result$

Function delay%($msec%)
$start% =GETSYS PRG,"MSEC"
For $i%=1 To 1000
Next $i%
$delay% = $now% - $start%
If ($delay% <$msec%) Then GOTO $loop

PS : is the eWON LAN IP address.

Attached Files
.zip   MD5.zip (Size: 86,71 KB / Downloads: 11)

Possibly Related Threads…
02-07-2020, 08:49 PM
Last Post: NTA_JK
26-06-2020, 11:50 AM
Last Post: simon
  Console Basic script Started by Cst
1 Replies - 83 Views
24-06-2020, 09:45 AM
Last Post: simon
16-06-2020, 03:03 PM
Last Post: simon
16-06-2020, 02:58 PM
Last Post: simon
  Redirect via BASIC Script Started by bdoucet
1 Replies - 129 Views
04-06-2020, 02:12 PM
Last Post: simon
02-06-2020, 01:58 PM
Last Post: simon
  String type in basic Started by khaterchi
2 Replies - 185 Views
14-05-2020, 07:19 PM
Last Post: khaterchi
12-05-2020, 09:20 AM
Last Post: simon
22-04-2020, 04:09 PM
Last Post: simon

Users browsing this thread:
1 Guest(s)

Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy