<commit_before># Hidr

Hide your strings!

[![Build Status](https://travis-ci.org/atongen/hidr.png)](https://travis-ci.org/atongen/hidr)

## Installation

Add this line to your application's Gemfile:

    gem 'hidr'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hidr

## Usage

Hidr allows you to obscure strings in other strings by facilitating a two-way conversion
between a string and a binary version of that string.

The resulting binary characters can be any two charaters. By default it uses a space and a tab.

```ruby
h = hidr::Hidr.new(b0: 'a', b1: 'z')
result = h.hide('Wow!')
```

After running this code, result will contain "zzzazazazzzzazzazzzazzzazaaaazaa".

It comes with a few commonly used mappings already setup: ascii, unicode, orly.
Call the class method of the same name to get these hidrs.

You can use Hidr from bash with the `hidr` executable. For example:

```
% echo Some important stuff | bin/hidr -h
110010101111011010110110101001100000010010010110101101100000111011110110010011100010111010000110011101100010111000000100110011100010111010101110011001100110011001010000
```

or even

```
% echo Some important stuff | bin/hidr -h | bin/hidr -s
Some important stuff
```

Type `hidr --help` after gem installation for usage.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>Add gem link<commit_after># Hidr

Hide your strings!

[![Gem Version](https://badge.fury.io/rb/hidr.png)](http://badge.fury.io/rb/hidr)
[![Build Status](https://travis-ci.org/atongen/hidr.png)](https://travis-ci.org/atongen/hidr)

## Installation

Add this line to your application's Gemfile:

    gem 'hidr'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hidr

## Usage

Hidr allows you to obscure strings in other strings by facilitating a two-way conversion
between a string and a binary version of that string.

The resulting binary characters can be any two charaters. By default it uses a space and a tab.

```ruby
h = hidr::Hidr.new(b0: 'a', b1: 'z')
result = h.hide('Wow!')
```

After running this code, result will contain "zzzazazazzzzazzazzzazzzazaaaazaa".

It comes with a few commonly used mappings already setup: ascii, unicode, orly.
Call the class method of the same name to get these hidrs.

You can use Hidr from bash with the `hidr` executable. For example:

```
% echo Some important stuff | bin/hidr -h
110010101111011010110110101001100000010010010110101101100000111011110110010011100010111010000110011101100010111000000100110011100010111010101110011001100110011001010000
```

or even

```
% echo Some important stuff | bin/hidr -h | bin/hidr -s
Some important stuff
```

Type `hidr --help` after gem installation for usage.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.09572107765451664, 'fraction_numerical': 0.1109350237717908, 'mean_word_length': 4.385665529010239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '3154824', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1033, 'n_words': 384}