On Tue, May 21, 2013 at 7:58 AM, Tobias Boege <tabo...@gmail.com> wrote:
> Hi folks,
>
> seems to be the day of new components... I just committed a gb.crypt.openssl
> component to wrap the cryptographic functions in OpenSSL's libcrypto. The
> idea came actually from Sebastian in conjunction with his gambas-online
> project. But maybe it's useful to someone else.

This is useful, thanks

In your example code you stated there is no automatic way to convert
strings to hex. It is possible to do using a loop and the Hex$
function, like so:

Public Function String2Hex(s As String) As String

  Dim ret As String = ""
  Dim i As Integer

  For i = 1 To Len(s)
    ret &= Hex$(Asc(s, i), 2)
  Next
  Return ret

End


Cheers,


Ian

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to