1/14/2024 0 Comments Msgbox line break xojoPlease do not hesitate to contact us with your questions. ![]() MsgBox "Verification failed." End If End Sub verify signature If OpenSSLMBS.VerifyData(EncodedString, signature, PrivateKey, Password, OpenSSLMBS.kAlgorithmSHA256) Then // show the valid data: Signature = DecodeBase64URLMBS(Signature) define the signed portion Dim EncodedString As String = Header + "." + Payload The Xojo Programming Language command Break immediately makes the debugger appear with the code stopped on that line. ![]() MsgBox "invalid text?" Return End If // split JWT into three parts: Dim Header As String = NthField(t, ".", 1)ĭim Payload As String = NthField(t, ".", 2)ĭim Signature As String = NthField(t, ".", 3) take values from fields and make sure encoding is right and line endings Dim PrivateKey As String = ReplaceLineEndings(, EndOfLine.UNIX).ConvertEncoding(encodings.UTF8)ĭim Password As String = (encodings.UTF8)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |