Skip to content

networkteam/obfuscate

Repository files navigation

obfuscate: Go functions for obfuscating sensitive data

GoDoc Build Status Go Report Card

Features

  • Mask email addresses

Scope

Log personal data like email addresses for debugging purposes.

Limitations

You should not rely on this package for security. Sensitive data should not be stored or stored in a secure way in the first place.

Install

go get github.com/networkteam/obfuscate

Usage

package main

import (
	"fmt"

	"github.com/networkteam/obfuscate"
)

func main() {
	fmt.Println(obfuscate.EmailAddressPartially("john.doe@example.com"))
	// Output:
	// j*n.d*e@e*e.com
}