## Contents - [Contents](#contents) - [About](#about) - [Installation](#installation) - [Usage](#usage) - [Example](#example) - [Basic usage example](#basic-usage-example) - [Offline validation example:](#offline-validation-example) - [Contributions](#contributions) - [License](#license) ## About This crate provides helper functions for managing and verifying license keys using Cryptolens. It simplifies the process of key activations, validations, and also offers utilities for handling RSA keys for digital signatures. **Why I make this crate?** In the official Cryptolens GitHub repository, there is an existing cryptolens-rust crate, but its last update was 5 years ago (2019), and it appears that some of its functionality may no longer be working correctly. Since there were no up-to-date alternatives available for using Cryptolens with Rust, I created this crate to provide a maintained and functioning solution for the Rust community. **04/23/2024 Updated 0.2.0 add offline validation function and example** ## Installation Add this to your `Cargo.toml`: ```toml [dependencies] cryptolens_yc = "0.2.0" ``` ## Usage To start using the `cryptolens_yc` crate, you need to include it in your Rust project and use the provided functions to activate and validate license keys. ### Example #### Basic usage example Here is a basic example demonstrating how to activate a license key and verify its signature: ```rust use cryptolens_yc::{key_activate, KeyActivateArguments}; let public_key = "