<commit_before># 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](#hash_algorithm) (string, default:`"SHA-256"`)
  - **new_name**: New column name if you want to rename (string, default: `null`)

## Example

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

## Hash Algorithm
<a name ="hash_algorithm">
This plugin use [MessageDigest](https://docs.oracle.com/javase/7/docs/api/java/security/MessageDigest.html) 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.
```java
for (String algorithm : java.security.Security.getAlgorithms("MessageDigest")) {<commit_msg>Correct README.md<commit_after># 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](#hash_algorithm) (string, default:`"SHA-256"`)
  - **new_name**: New column name if you want to rename (string, default: `null`)

## Example

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

## Hash Algorithm
<a name ="hash_algorithm">
This plugin uses [MessageDigest](https://docs.oracle.com/javase/7/docs/api/java/security/MessageDigest.html) 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.
```java
for (String algorithm : java.security.Security.getAlgorithms("MessageDigest")) {
{'fraction_non_alphanumeric': 0.1297423887587822, 'fraction_numerical': 0.011241217798594848, 'mean_word_length': 4.380352644836272, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2572624', 'n_tokens_mistral': 658, 'n_tokens_neox': 620, 'n_words': 225}