open-index/open-npm huggingface dataset:
npm package: @socialgouv/aes-gcm-rsa-oaep
Description: Kubeseal aes-gcm-rsa-oaep encryption implementaton in JavaScript
Author: Clement Berthou
Latest version: 1.1.4

# AES-GCM + RSA OAEP encryption

AES-GCM + RSA-OAEP encryption/decryption using WebCrypto API in NodeJS or in the browser

Tests uses `@peculiar/webcrypto` for polyfilling browser crypto api.

This can be used to replace [kubeseal](https://github.com/bitnami-labs/sealed-secrets) encryption in JavaScript environments.

See demo : http://socialgouv.github.io/webseal

## Usage

### High level

```js
import { encryptValue, encryptValues, getSealedSecret } from "@socialgouv/aes-gcm-rsa-oaep"

// encrypt single value
const encryptedValue =  encryptValue({
  pemKey: "somekey",
  scope: "cluster",
  namespace: "dev",
  name: "my-secret",
  value: "plain-value";
});

// encrypt multiple values
const encryptedValue =  encryptValues({
  pemKey: "somekey",
  scope: "cluster",
  namespace: "dev",
  name: "my-secret",
  values: {
    value1: "plain1",
    value2: "plain2"
  }
});

// get sealed-secret
const sealedSecret =  getSealedSecret({
  pemKey: "somekey",
  scope: "cluster",
  namespace: "dev",
  name: "my-secret",
  values: {
    value1: "plain1",
    value2: "plain2"
  }
});
```

## Low level

```js
import { pki } from 'node-forge';
import { HybridEncrypt, pemPublicKeyToCryptoKey } from '@socialgouv/aes-gcm-rsa-oaep';

const publicKeyPem = pki.publicKeyToPem(cert.publicKey);
const publicKey = await pemPublicKeyToCryptoKey(publicKeyPem);

const plainText = 'Bonjour le monde';
const label = Buffer.from('');

const result = await HybridEncrypt(publicKey, plainText, label);

const sealedText = Buffer.from(result).toString('base64');
```

## Encryption Algorithm

To encrypt content, we go through the following steps :

-   Generate a 128 bits AES key

-   Encrypt the payload using the AES-GCM algorithm (with the previously generated key). We use a 12 bits of 0 as IV, because the key is only used once.

-   Encrypt the AES key using the RSA-OAEP algorithm (using the provided public key).

-   Generate the output payload this way :
  (RSA payload length as 2 bytes integer) || (RSA encrypted aes key) || (AES encrypted payload)
npm package: @socialgouv/archimail-pst-extractor
Description: Extract objects from MS Outlook/Exchange PST files
Author: Fabrique des ministère sociaux
Latest version: 0.2.0

# archimail-pst-extractor

[![npm](https://img.shields.io/npm/v/@socialgouv/archimail-pst-extractor.svg)](https://www.npmjs.com/package/@socialgouv/archimail-pst-extractor)  [![codecov](https://codecov.io/gh/SocialGouv/archimail-pst-extractor/branch/main/graph/badge.svg)](https://codecov.io/gh/SocialGouv/archimail-pst-extractor)

Extract objects from MS Outlook/Exchange PST files

[![nodei.co](https://nodei.co/npm/@socialgouv/archimail-pst-extractor.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/@socialgouv/archimail-pst-extractor)

## Features

Extract objects from MS Outlook/Exchange PST files.

This is based off code from https://github.com/epfromer/pst-extractor and https://github.com/rjohnsondev/java-libpst. Thanks to Richard Johnson and Orin Eman.

A spec from Microsoft on the PST file format is at https://msdn.microsoft.com/en-us/library/ff385210(v=office.12).aspx.

## Install

```npm install --save @socialgouv/archimail-pst-extractor```

or

```yarn add @socialgouv/archimail-pst-extractor```



## License
[Apache-2.0](LICENSE)
npm package: @socialgouv/azure-db
Description: Create/Destroy databases on Azure. Commands are run in Kubernetes.
Latest version: 1.14.5

# @socialgouv/azure-db

Create/Destroy databases on Azure. Commands are run in Kubernetes.

`yarn global add @socialgouv/azure-db` and you'll get `azure-db` command available.

:warning: Need `kubectl` CLI installed on your system and kubernetes context installed.

#### CLI

```sh
Usage: azure-db command [options]

Commands:
  azure-db create                create a new database and user
  azure-db drop                  destroy a database and a user
  azure-db drop-autodevops-dbs   destroy all generated databases

Options:
  --cluster      k8s cluster               [required] [choices: "prod", "dev"]
  --application  gitlab application name                              [required]
  --database     database name
  --user         user name
  --pg-name      alternative PG server prefix
  --secret-name  alternative secret name
```

###### Examples

```sh
# Create a database in DEV
azure-db create --application sample-next-app

# Create a database in PROD
azure-db create --cluster prod --application sample-next-app --database demo42 --user demo42

# Destroy a database in DEV
azure-db drop --application sample-next-app --database demo42 --user demo42

# Destroy all generated databases in DEV
azure-db drop-autodevops-dbs --application sample-next-app
```
npm package: @socialgouv/clone-moi-sur-github
Description: Un bandeau React clone-moi-sur-github
Latest version: 1.0.1

# clone-moi-sur-github [![pipeline status](https://gitlab.factory.social.gouv.fr/SocialGouv/clone-moi-sur-github/badges/master/pipeline.svg)](https://gitlab.factory.social.gouv.fr/SocialGouv/clone-moi-sur-github/commits/master)

[![NPM](https://nodei.co/npm/@socialgouv/clone-moi-sur-github.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/@socialgouv/clone-moi-sur-github)

Le célèbre "Github Ribbon" mode 🇫🇷.

<img src="./demo.png" alt="demo" width="300"/>

## Installation

```sh
yarn add @socialgouv/clone-moi-sur-github
```

## Usage

```js
import Ribbon from "@socialgouv/clone-moi-sur-github";

<Ribbon url="https://github.com/SocialGouv/clone-moi-sur-github" />;
```

See [example/src](./example/src).

## Props

| Prop           | type   | usage                                | default |
| -------------- | ------ | ------------------------------------ | ------- |
| url          | string | lien vers le repo à lier  | - |


## Source

 - https://github.com/tholman/github-corners