open-index/open-npm huggingface dataset:
npm package: @jakmer/jwt-tester-cli-darwin-arm64
Description: Platform binary for jwt-tester-cli (darwin arm64).
Latest version: 0.1.0

# @jakmer/jwt-tester-cli-darwin-arm64

Platform binary package for jwt-tester-cli.

This package is installed automatically via the `jwt-tester-cli` meta-package.
Do not install it directly.
npm package: @jakmer/jwt-tester-cli-darwin-x64
Description: Platform binary for jwt-tester-cli (darwin x64).
Latest version: 0.1.0

# @jakmer/jwt-tester-cli-darwin-x64

Platform binary package for jwt-tester-cli.

This package is installed automatically via the `jwt-tester-cli` meta-package.
Do not install it directly.
npm package: @jakmer/jwt-tester-cli-linux-arm64
Description: Platform binary for jwt-tester-cli (linux arm64).
Latest version: 0.1.0

# @jakmer/jwt-tester-cli-linux-arm64

Platform binary package for jwt-tester-cli.

This package is installed automatically via the `jwt-tester-cli` meta-package.
Do not install it directly.
npm package: @jakmer/jwt-tester-cli-linux-x64
Description: Platform binary for jwt-tester-cli (linux x64).
Latest version: 0.1.0

# @jakmer/jwt-tester-cli-linux-x64

Platform binary package for jwt-tester-cli.

This package is installed automatically via the `jwt-tester-cli` meta-package.
Do not install it directly.
npm package: @jakmer/jwt-tester-cli-win32-x64
Description: Platform binary for jwt-tester-cli (win32 x64).
Latest version: 0.1.0

# @jakmer/jwt-tester-cli-win32-x64

Platform binary package for jwt-tester-cli.

This package is installed automatically via the `jwt-tester-cli` meta-package.
Do not install it directly.
npm package: @jakmol8888/uikit
Description: Set of UI components for pancake projects
Latest version: 0.32.4

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @jakob-lyon/space-goons
Description: A fun game of risk and reward
Author: Jakob Lyon
Latest version: 1.0.0

# SpaceGoons

Hello and welcome to Space Goons. This is a quick game designed to test the ability to balance risk and reward. It is a text-based game where you will navigate the Galaxy in an attempt to reach home. You will be presented with a number of options, and you must use your resources and time wisely. Running out of resources, or running out of time, will leave you defeated. Have fun!

This was developed on node version 12 and not tested on any other version. To begin, type `node start.js`.
npm package: @jakobfischer/rsa.js
Description: rsa implementation in JS
Author: Jakob Fischer
Latest version: 1.0.0

# RSA Module

This is a Node.js module for RSA encryption and decryption.


## Usage

Create a new RSA object with the desired configuration:

(You don't need to define a configuration)

```javascript
let config = {bits: 16, Prime1: 0, Prime2: 0, E: 0, D: 0}
let rsa = new RSA(config);
```

The `RSA` constructor takes a configuration object with the following properties:

- `bits`: The number of bits in the RSA key. Default is 16. If you make bits, you wont be able to generate a Prime I would suggest a maximum of 45 bits.
- `Prime1`: The first prime number. If not provided, it will be generated.
- `Prime2`: The second prime number. If not provided, it will be generated.
- `E`: The public exponent. If not provided, it will be generated.
- `D`: The private exponent. If not provided, it will be generated.

## Methods

The `RSA` class provides several methods for encryption, decryption, and key generation:

- `generateKeys()`: This method is used to generate the public and private keys for the RSA encryption. It uses the provided or generated prime numbers and public exponent to calculate `d`, `e` and `n`. It returns an object: `{p ,q, e, d, n}`

- `isPrime(num)`: This method checks if a number is prime. It takes a BigInt number as input and returns a boolean value indicating whether the number is prime or not.

- `generatePrime(bits)`: This method generates a prime number of a given bit length. It uses a random number generator to generate a random number of the specified bit length, then checks if the number is prime. If not, it generates a new number and checks again, repeating this process until a prime number is found.

- `encrypt(message)`: This method encrypts a message using the public key. It takes a string message as input, converts the message to a BigInt representation, and then uses the public key to encrypt the message. The encrypted message is returned as a BigInt.

- `decrypt(encryptedMessage)`: This method decrypts an encrypted message using the private key. It takes an encrypted message as a BigInt, uses the private key to decrypt the message, and then converts the BigInt representation back to a string. The decrypted message is returned as a string.

## Errors

If the provided prime numbers are not prime or not of type BigInt, an error will be logged to the console.

## License

This project is licensed under the MIT License.