rioadvancement / nalperion_rust

Intergration to Nalperion for licensing. Reference code only

Home Page:https://gitlab.com/rioadvancement/nalperion-rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For lastest updates: Go to gitlab.com/rioadvancement/nalperion-rust.

nalperion_rust

The document provides information on Intergration to Nalperion for licensing using Rust Lang

This is reference code to help you operate with nalperion, but the way you use it in your software to make the entitlement work needs to be solutioned by you.

Rust Lang

Tested on rust 1.24.1

Reference

nalperion.rs

This code assumes that you have ShaferFileChk.so downloaded and extracted, available in the tools/license directory

create_trial_or_verify

This method does

  • NalpLibOpen by using the .so file provided
  • NSLValidateLibrary using CUSTOMER_ID, PRODUCT_D
  • NSLGetLicense
  • NalpLibClose

The output of the method is

  • On error, the error msg has the information
  • On success, trial commenced or activated using the license code.

If you have a license code from Nalperion then edit config.rs


activation_code: Some("09090000090909".to_string()),


Compile and Run


cargo build

cd ./target/debug/

./rioos-entitlement


Voila !

About

Intergration to Nalperion for licensing. Reference code only

https://gitlab.com/rioadvancement/nalperion-rust

License:MIT License


Languages

Language:Rust 100.0%