<commit_before># encrypted_id

Sometimes you don't want your users to see the actual ID of your databases entries. This gem allows you to hide the ID.

encrypted_id turns a URL like this:

    http://www.example.com/users/15

into something like:

    http://www.example.com/users/<PASSWORD>

encrypted_id uses AES-256 (CBC) with a configurable key (per model) to do so.

## Installation

Add the gem to your Gemfile:

    gem 'encrypted_id'

Run bundler:

    bundle install

## Usage<commit_msg>include build status in README<commit_after># encrypted_id [![Build Status](https://secure.travis-ci.org/pencil/encrypted_id.png)](http://travis-ci.org/pencil/encrypted_id)

Sometimes you don't want your users to see the actual ID of your databases entries. This gem allows you to hide the ID.

encrypted_id turns a URL like this:

    http://www.example.com/users/15

into something like:

    http://www.example.com/users/1<PASSWORD>1<PASSWORD>506b116ff143<PASSWORD>

encrypted_id uses AES-256 (CBC) with a configurable key (per model) to do so.

## Installation

Add the gem to your Gemfile:

    gem 'encrypted_id'

Run bundler:

    bundle install

## Usage
{'fraction_non_alphanumeric': 0.09232096635030199, 'fraction_numerical': 0.0181190681622088, 'mean_word_length': 3.8945147679324896, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, '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': '7331494', 'n_tokens_mistral': 401, 'n_tokens_neox': 367, 'n_words': 131}