Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cipherstash/cipherstash-migration-scripts

Script to migrate plaintext data to encrypted data
https://github.com/cipherstash/cipherstash-migration-scripts

database encryption

Last synced: 7 days ago
JSON representation

Script to migrate plaintext data to encrypted data

Awesome Lists containing this project

README

        

# CipherStash migration scripts

This repo contains scripts that can be used to do a data migration of plaintext data over to encrypted data in the encrypted columns.

There are currently scripts for Rails and Sequelize.

## Usage

### Rails

Copy over the `/ruby/active-record/cipherstash_tasks.rake` file to `lib/tasks`.

After completing the initial setup and running Tandem:

Run:

```bash
rails cipherstash:migrate[Model Name]
```

```zsh
rails cipherstash:migrate\[Model Name\]
```

### Sequelize

Copy over the `/javascript/sequelize/cipherstash-encrypt.js` file to your project.

After completing the initial setup and running Tandem:

Run:

```bash
node cipherstash-encrypt.js field_one field_two field_three
```