No description or website provided.
Kotlin Ruby
Latest commit c90ec79 Feb 16, 2017 @kamatama41 committed on GitHub Merge pull request #8 from kamatama41/update
Update to the latest plugin style

README.md

Build Status

Hash filter plugin for Embulk

Embulk filter plugin to convert a input to hash.

Overview

  • Plugin type: filter

Configuration

  • columns: Columns to hash (array, required)
    • name: Name of input column (string, required)
    • algorithm: A hash algorithm. See also (string, default:"SHA-256")
    • new_name: New column name if you want to rename (string, default: null)

Example

filters:
  - type: hash
    columns:
    - { name: username }
    - { name: email, algorithm: SHA-512, new_name: hashed_email }

Hash Algorithm

This plugin uses MessageDigest for hashing. Every implementation of the Java platform supports the following MessageDigest algorithms:

  • MD5
  • SHA-1
  • SHA-256

If you want to know all algorithms that your platform supports, run the following snippet.

for (String algorithm : java.security.Security.getAlgorithms("MessageDigest")) {
    System.out.println(algorithm);
}

Build

$ ./gradlew gem  # -t to watch change of files and rebuild continuously