
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Jc.OpenNov.Nfc.Android
Advanced tools
.NET library to read data from NFC Novo Nordisk insulin pens on Android devices.
Library for reading data from NFC Novo Nordisk insulin pens in .NET.
C# implementation derived from lcacheux's Kotlin nov-open-reader project - big thanks!
Jc.OpenNov is a library designed to facilitate the reading of data from NFC Novo Nordisk insulin pens from iOS and Android in .NET.
Android | iOS |
---|---|
![]() |
To use Jc.OpenNov, you need to install the NuGet package:
dotnet add package Jc.OpenNov
Followed by adding the Android/iOS Jc.OpenNov.Nfc.xxx
package to your project:
dotnet add package Jc.OpenNov.Nfc.Android
Install the following NuGet packages to their respective projects:
dotnet add package Jc.OpenNov.Avalonia
dotnet add package Jc.OpenNov.Avalonia.Android
Add the following to your AndroidManifest.xml:
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />
In your MainActivity
, add to your AppBuilder
like so:
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
// ...
.UseOpenNov(this);
}
Install the following NuGet packages to their respective projects:
dotnet add package Jc.OpenNov.Avalonia
dotnet add package Jc.OpenNov.Avalonia.iOS
Add the following to your Entitlements.plist:
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
</array>
and the following to your Info.plist:
<key>NFCReaderUsageDescription</key>
<string>Used to retrieve data from Novopens.</string>
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>D2760000850101</string>
<string>E103</string>
<string>E104</string>
</array>
In your AppDelegate
, add to your AppBuilder
like so:
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
// ...
.UseOpenNov();
}
To start listening for NFC tags, call:
OpenNov.Current.MonitorNfc(/* you may pass in an optional stop condition */);
Likewise, to stop listening for NFC tags, call:
OpenNov.Current.StopNfc();
To know when an NFC tag is detected and data is obtained, subscribe to the event handlers:
public MainViewModel()
{
StarNfcCommand = ReactiveCommand.Create(StartNfc);
StopNfcCommand = ReactiveCommand.Create(StopNfc);
Avalonia.OpenNov.Current.OnDataRead += OnDataRead;
Avalonia.OpenNov.Current.OnTagDetected += OnTagDetected;
Avalonia.OpenNov.Current.OnError += OnError;
}
~MainViewModel()
{
Avalonia.OpenNov.Current.OnDataRead -= OnDataRead;
Avalonia.OpenNov.Current.OnTagDetected -= OnTagDetected;
Avalonia.OpenNov.Current.OnError -= OnError;
}
private void OnDataRead(object? sender, Data.PenResult e)
{
if (e is Data.PenResult.Success success)
{
Serial = success.Data.Serial;
}
}
private void OnTagDetected(object? sender, ITag? e)
{
var bytes = e?.GetId();
if (bytes is null)
{
TagId = "Tag not found";
return;
}
TagId = Convert.ToHexString(bytes);
}
private void OnError(object? sender, Exception e)
{
Error = e.Message;
}
FAQs
.NET library to read data from NFC Novo Nordisk insulin pens on Android devices.
We found that jc.opennov.nfc.android demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.