hunterjsobfuscator

package module
v0.0.0-...-079c8f4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

README

Hunter - Go Javascript Obfuscator

This package is a Hunter Obfuscator written in Go to protect your JavaScript source code with the simplest and fastest way.

Installation

go get github.com/spectreh/hunter-js-obfuscator

Usage

import "github.com/spectreh/hunter-js-obfuscator"

rand.Seed(time.Now().UnixNano())

code := "alert('hello');"

obf := NewObfuscator(code)
obfuscatedCode := obf.Obfuscate()

Additional information

Only standard go packages were in use.

Author

License

This package is licensed under MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Obfuscator

type Obfuscator struct {
	// contains filtered or unexported fields
}

func NewObfuscator

func NewObfuscator(code string) Obfuscator

func (Obfuscator) Obfuscate

func (o Obfuscator) Obfuscate() string

Jump to

Keyboard shortcuts

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