ECIES Encrypt / Decrypt in Dart - Flutter - flutter

Is there any way to do encryption and decryption using ECIES getting the keys as a string from sever.
I cannot found enought information.
If is posible... Can someone give me an example, please.
I tried using dartsv but it didn't work.

Related

iText7 and C# - X509Certificate2Signature port can't sign using RSAcng

I'm trying to sign a PDF using iText7 the way I did with iText5:
I took the Cert from Windows Personal Store.
I create an IExternalSignature based on the Cert.
I found that X509Certificate2Signature class is not present in iText7.
Because of that I've ported it, however when the Signer method SignDetached is invoked I get that nasty error telling that the classic RSA algorithm is not available because now it is a bit different (RSAcng).
Is there a workaround?
For sure, there must be a reason why the class was not ported to iText7 that I can't understand.
Thanks.

Google SDK Token from private key file

I'm writing a PowerShell script to interact with our Chromebook inventory and I have followed the process outlined here
https://developers.google.com/admin-sdk/directory/v1/guides/delegation
To create a private key file and delegated it permissions.
However, there's no documentation how to decode the public/private key to generate a token without using one of the pre-built libraries, which of course don't include PowerShell. Even if there was a language agnostic description of what needs to be done I'd be able to try something out, but unfortunately there isn't.
I found this question which seems to be the same issue as what I'm having but it was never answered either.
Google Identity Platform: Using OAuth 2.0 in Powershell using Firebase Admin SDK private key
Try using a pfx rather than the JSON file and following the framework laid out here. Your scopes will be different but this should get you started.

How can I get the SHA1 fingerprint of a TlsCertificate in GJS?

I'm trying to get a fingerprint of a Gio.TlsCertificate of a connection, which as I understand it is just a SHA1 checksum of the certificate in DER form. So I think I could use GLib.compute_checksum_for_data() on the certificate property of the Gio.TlsCertificate object, but any attempt to access that property results in:
JS ERROR: Error: Unable to introspect element-type of container in GValue
Is there a way I can access the certificate property, or an easier way to fingerprint a certificate in GLib?
This looks like a bug in the generated introspection XML for Gio.TlsCertificate.certificate. I’ve filed an upstream bug about it.
In the meantime, you may be able to work around this by retrieving the property manually using g_object_get() and handling things that way; I don’t know what workarounds are exactly possible in JS.

NFC Plugin for Eclipse

I'm trying to use the NFC Plugin but i have an error "Signature could not verify". I write the code generating the signature of the data and a selfsigned certificate. But when I put all them together i shows me that error. Can you help me with this?
The Signature Record support is experimental at this point, so I advise you to check out the sources for a deeper investigation.

Equivalent of Openssl RSA_PKCS1_OAEP_PADDING in IPhone Security framework and common crypto libraries

I am trying to convert code written in Openssl into the iphone’s built in security framework and crypto libraries. Is there an equivalent padding value RSA_PKCS1_OAEP_PADDING in the built in apple functions? Is there a value I can hardcode for my padding variable to get the same value?
Thanks in advance.
I worked around the padding issue by being able to incorporate Openssl so I don't have to use the crypto libraries.