classified

package module
v0.0.0-...-0bbc78e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 3 Imported by: 1

README

classified GoDoc

Redact or Sanitize your classified Go strings.

The above sentence would look like ██████ ██ ████████ ████ ██████████ ██ ███████ when sanitized and [REDACTED] [REDACTED] [REDACTED] [REDACTED] [REDACTED] [REDACTED] [REDACTED] when redacted.

Usage

Install the package with go get github.com/Sayan98/classified

package main


import (
    "github.com/Sayan98/classified"
    "fmt"
)


func main() {
    myStr := "My secret string!"

    fmt.Println("original  : ", myStr)
    fmt.Println("redacted  : ", classified.Redact(myStr))
    fmt.Println("sanitized : ", classified.Sanitize(myStr))
}

What is Sanitization and Redaction ?

Sanitization is the process of removing sensitive information from a document or other message (or sometimes encrypting it), so that the document may be distributed to a broader audience. When the intent is secrecy protection, such as in dealing with classified information, sanitization attempts to reduce the document's classification level, possibly yielding an unclassified document. When the intent is privacy protection, it is often called data anonymization. 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 in its sanitization sense (as distinguished from its other editing sense) is the blacking out or deletion of text in a document, or 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.

Author

Sayan Goswami

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redact

func Redact(s string) string

Given a string, redact it

Example - "Go Lang" becomes "[REDACTED] [REDACTED]"

Link - https://en.wikipedia.org/wiki/Redaction

func Sanitize

func Sanitize(s string) string

Given a string, sanitize it

Example - "Go Lang" becomes "██ ████"

Link - https://en.wikipedia.org/wiki/Sanitization_(classified_information)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL