The Microsoft Crypto API (CAPI) in powerbuilder - asp.net

I'm looking for examples information on how to extract certificate information from the windows certificate store and perform operations like verifying signatures using the retrieved certificates.The particular certificate will be provided via a USB token. Any help or pointers would be much appreciated, thanks.

There is a Cryto sample program available on Sybase code-exchange, it may require logging into the Sybase site and you'll need to migrate it to your current version of PB. The download location is:
http://downloads.sybase.com/codexchange/powerbuilder/923/PBCrypto.zip
Also, you can find some code samples of using Crypto API on a Windows machine here:
http://www.rgagnon.com/pbdetails/pb-0170.html

Related

R's AzureKusto library and access to Azure Log Analytics

I am wondering how to get the data from Azure Log Analytics with AzureKusto library for R.
The server parameter reads:
server: The URI of the server, usually of the form
'https://clustername.location.kusto.windows.net'. addr, address,
network address, datasource, host
I have no idea where to find this information.
Thanks in advance : )
the SDK you're looking at has been written to query Kusto/ADX clusters, and not Azure Log Analytics resources.
that said, you could potentially still use it, and Query data in Azure Monitor using Azure Data Explorer (Preview)

Firebase + Flutter business framework

I am considering building a Firebase + Flutter framework to small business solutions.
By providing a fairly high level of security, Firebase + Flutter seems quite good for a number of business applications especially based on Android.
However, for this to make sense I have to solve a few problems and I will be very grateful for help in any of the points below.
Is it possible to connect from within a firebase database via VPN
(mainly OpenVPN) to another database via odbc and/or through
webservice (strongly preferred odbc)? The goal is to connect
firebase with local databases in companies - especially MS-SQL
databases (mainly small ERP / WMS system). If this is not possible,
how can an equivalent effect be obtained? I also need a connection
from firebase to firebase to automatically download changes to the
framework from the main repository.
Many governmental and commercial systems require signing files with
a signature based on X.509 (mainly * .pfx, * .p12 password
protected). I would like all such a signature to be implemented on
the firebase server side (possibility of managing such
certificates). Are there appropriate libraries in firebase to sign
content in accordance with X.509? If not how to get the effect of
signing content in firebase + flutter and strongly prefer that the
certificate was not on the client.
In several places on the network I met the possibility of logging in
using a certificate compatible with X.509 or identical, but I do not
see such an option for selection in the panel in firebase? Is
X.509-compliant login support by Google in Firebase, and if not,
could I ask for a step-by-step link on how to handle it yourself in
two variants: a) external certificate , b) automatically generated
certificate by the client application.
Thank you in advance for your support
The subject of this question is so broad that I don't think its possible to answer on StackOverflow.
Generally Firebase is a set of cloud functionalities including databases, functions, authentication (and many more) that can be used in your mobile apps. One of the technologies that you can use Firebase with, but not only one, is Flutter which is engine using Dart programing language. But there are a lot of API from other programing languages like Java, JS, Python and many more. They might be different depending of the product you choose from Firebase.
Now pointing to your questions:
I am not sure what do you mean by "connecting from Firebase", but I suppose you mean connecting from your app. If you build the app in Flutter you will use Dart and it has VPN support of course like here.
Although I don't know much about X.509 I have found that dart will support it as well here example.
Authentication is one of Firebase enter link description here products. You can find there also custom authentication possibilities
I think all you asking is possible, but of course there is no simple answer for it. I hope it will help you.

Xamarin PCL-way to check password like password_verify

I am developing an App that checks on a web server if users exist but should support offline login. I am tempted to store the user's hash information locally to perform offline checks, so I return the password_hash generated via php on the server.
First of all - is that a secure enough approach? Is it possible to check the password_hash in a similar way as PHP's password_verify via PCL? Or should I consider creating a local salt/hash pair? I so, what is the suggested approach?
I would think you generate hash in Xamarin and not sending the whole password to the server but in any case... PCL doesn't have that functionality but you can use DependancyService and implement that in platform specific code
For Andoid:
HashAlgorithm.ComputeHash("fgf");
For iOS
HashAlgorithm.ComputeHash(stream);

How to connect to bluetooth services like PBAB with Qt?

I am trying to read contacts from my phone to my Linux machine using Qt application. I am only able to pair my phone, but unable to connect / read contacts from it. In fact I'm not sure about the exact api to be used to connect to PBAB profile.
I found samples using dbus to connect to PBAB profile and read contacts. But I would like to know if QBluetooth module support the same if so how to use it.
Hope somebody can help me out in this case.
Thanks in advance :)

How can we access windows service in webapplication using dot net

I need to read the data from the COM port in a web application, so I have written a Windows Service for reading data from serial ports. Now I need to access that data in a web application. Can anyone tell me how to access it? Is using threads the best way to do this or not? What other possible ways are there?
upendra
Get your Windows Service app to store the data to disk (xml or SDF for example). Your Web application could then access the same data store...
An idea would be to use an .Net Queue to read the values from. Read more here: http://msdn.microsoft.com/en-us/library/system.collections.queue(v=vs.71).aspx
Your other options would be to write the data to a file or a DB but then you have to write your own logic to handle disposing of read data which the Queue functionality will take care for you.
Cheers,
Stefan
In similar scenario I used self-hosted WCF service within windows service. In this way you expose api to control the service and get information from it.
You can read more about WCF self-hosting in Michele Leroux's article : link

Resources