Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

embulk-filter-hash

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embulk-filter-hash

  • 0.5.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CircleCI

Hash filter plugin for Embulk

Embulk filter plugin to convert an input to a hash value.

Overview

  • Plugin type: filter

Configuration

  • columns: Columns to hash (array, required)
    • name: Name of input column (string, required)
    • algorithm: Hash algorithm. See also (string, default:"SHA-256")
    • secret_key: Secret key for HMAC hashing. (string, required when specifying HMAC algorithm)
    • new_name: New column name if you want to rename the column (string, default: null)

Example

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

Hash Algorithm

You can choose either of MessageDigest algorithm or HMAC algorithm. 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);
}
for (String algorithm : java.security.Security.getAlgorithms("Mac")) {
    System.out.println(algorithm);
}

Build

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

FAQs

Package last updated on 18 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc