[Gambas-user] HMAC-MD5 & CRAM-MD5

mtitouinfo at yahoo.fr mtitouinfo at yahoo.fr
Thu Jun 25 14:21:03 CEST 2020


hellohow to translate this function, in native gambas, with component gb.openssl, without "Shell" ?  thanks.
gambas version: 3.14.3
Private Function CramMD5(email As String, password As String, challenge As String) As String
 'ok it works 
 Dim token As String  System.shell = "/bin/bash" Shell "awk '{print $NF}' < <(openssl dgst -hex -md5 -hmac " & password & " < <(openssl base64 -d <<<" & challenge & "))" To token token = Base64(Trim(email & " " & token))
 Return token End
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200625/afcce27d/attachment.html>


More information about the User mailing list