Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cipherstash/cipherstash-migration-scripts
- Owner: cipherstash
- Created: 2024-01-08T23:58:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-21T22:39:29.000Z (10 months ago)
- Last Synced: 2024-06-28T09:07:02.860Z (5 months ago)
- Topics: database, encryption
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```