Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Xojo Plugin) RSA Sign using Base64 Private KeySigns a string using a non-encrypted RSA private key in base64 encoding. Returns the RSA signature as a base64 string.
// This requires the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. Dim privKey As New Chilkat.PrivateKey Dim success As Boolean Dim sbPem As New Chilkat.StringBuilder success = sbPem.AppendLine("-----BEGIN RSA PRIVATE KEY-----",True) success = sbPem.AppendLine("MIIC .... j5A==",True) success = sbPem.AppendLine("-----END RSA PRIVATE KEY-----",True) success = privKey.LoadPem(sbPem.GetAsString()) If (success <> True) Then System.DebugLog(privKey.LastErrorText) Return End If Dim rsa As New Chilkat.Rsa success = rsa.ImportPrivateKeyObj(privKey) If (success <> True) Then System.DebugLog(rsa.LastErrorText) Return End If rsa.EncodingMode = "base64" Dim strSigned As String strSigned = rsa.OpenSslSignStringENC("12345678") System.DebugLog(strSigned) Dim strOriginal As String strOriginal = rsa.OpenSslVerifyStringENC(strSigned) System.DebugLog(strOriginal) |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.