Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leereilly/classified-ipsum
:black_large_square: Classified text? No problem! Sanitize it with ██████ ███ or redact it with [REDACTED]
https://github.com/leereilly/classified-ipsum
humor lulz redaction ruby-gem
Last synced: 3 months ago
JSON representation
:black_large_square: Classified text? No problem! Sanitize it with ██████ ███ or redact it with [REDACTED]
- Host: GitHub
- URL: https://github.com/leereilly/classified-ipsum
- Owner: leereilly
- License: mit
- Created: 2013-02-25T00:14:19.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-01T14:32:53.000Z (almost 11 years ago)
- Last Synced: 2024-10-14T11:32:33.693Z (3 months ago)
- Topics: humor, lulz, redaction, ruby-gem
- Language: Ruby
- Homepage:
- Size: 158 KB
- Stars: 30
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Sanitize or redact your Ruby strings!
E.g. the [lorem ipsum text](http://en.wikipedia.org/wiki/Lorem_ipsum) fully sanitized looks like this:
█████ █████ █████ ███ ████, ███████████ ███████████ ████, ███ ██ ███████ ██████ ██████████ ██ ██████ ██ ██████ █████ ██████. ██ ████ ██ █████ ██████, ████ ███████ ████████████ ███████ ███████ ████ ██ ███████ ██ ██ ███████ █████████. ████ ████ █████ █████ ██ █████████████ ██ █████████ █████ ████ ██████ ██████ ██ ██████ █████ ████████. █████████ ████ ████████ █████████ ███ ████████, ████ ██ █████ ███ ███████ ████████ ██████ ████ ██ ███ ███████.
# Usage
```ruby
"Deploy all ground assets to Northern Theater.".sanitize
# => ██████ ███ ██████ ███████ ██ ████████ ███████.
``````ruby
"Engage any combatants using IE.".redact
# => [REDACTED] [REDACTED] [REDACTED] [REDACTED] [REDACTED].
```**Sanitization** is the process of removing sensitive information from a document or other medium, so that it may be distributed to a broader audience. When dealing with classified information, sanitization attempts to reduce the document's classification level, possibly yielding an unclassified document. Originally, the term sanitization was applied to printed documents; it has since been extended to apply to computer media and the problem of data remanence as well.
**Redaction** generally refers to the editing or blacking out of text in a document, or to the result of such an effort. It is intended to allow the selective disclosure of information in a document while keeping other parts of the document secret. Typically the result is a document that is suitable for publication, or for dissemination to others than the intended audience of the original document. For example, when a document is subpoenaed in a court case, information not specifically relevant to the case at hand is often redacted.
![](http://i.imgur.com/3Oxkz6H.png)
# License
MIT.