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

jekyll-hash

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-hash


Version published
Maintainers
1
Created

Jekyll Hash Filter

Adds a variety of filters to enable string hashing in Jekyll.

Currently the filter supports the following hash functions:

  • SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256
  • SHA3-224, SHA3-256, SHA3-384, SHA3-512

This plugin uses the OpenSSL implementations of the above hash functions.

Installation

Add the following to your Gemfile:

gem 'jekyll-hash`

Then make the following entry under _config.yml:

plugins:
    - jekyll-hash

Usage

The filters can be used as follows:

{{ 'text to be hashed' | sha_256 }}
{{ 'text to be hashed' | sha_512_224 }}
{{ 'text to be hashed' | sha3_512 }}

Testing

Run the command:

bundle exec rspec

FAQs

Package last updated on 16 Nov 2021

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