Go Integer/Constant Obfuscator
Obfuscate numeric literals in your Go code by converting them to hex, octal, binary, bitwise NOT, XOR, arithmetic expressions, and bit shifts. Enter any number and get 7+ obfuscated variants that all evaluate to the same value. Supports all Go numeric types including int, uint, float32/64, and complex64/128. Copy individual expressions or the full set — all free, private, and no signup required.
Enter any numeric value and generate obfuscated Go expressions that evaluate to the same number. Choose from hex, octal, binary, bitwise, arithmetic, and shift disguises — all produce valid Go code.
0o520b101010^42 ^ 0 ^ 042 ^ 0(2 * 21)672 >> 40x2a0x2a evaluates to 42 as intAll Obfuscated Variants
0x2a0o520b101010^42 ^ 0 ^ 042 ^ 0(2 * 21)672 >> 4How it works
This tool generates obfuscated Go numeric expressions that evaluate to the same value but look completely different. Select a Go type (signed/unsigned integers) and enter any number. The tool applies multiple disguises: hex (0xFF), octal (0o377), binary (0b11111111), bitwise operations, arithmetic expressions, and bit shifts. Copy the generated expression directly into your Go source code. All processing is local — no data leaves your browser.
Features
14 Go Types Supported
Works with int, int8 through int64, uint, uint8 through uint64, float32, float64, complex64, and complex128. Obfuscated expressions include type casts where needed.
7 Obfuscation Methods
Choose from Hex, Octal, Binary, Bitwise NOT, Bitwise XOR, Arithmetic, and Bit Shift expressions. Each method generates valid Go code that evaluates to the same value.
Float & Complex Support
Float32/float64 values are preserved with type-annotated expressions. Complex types use Go's complex() constructor with obfuscated real and imaginary components.
Type-Safe Code Generation
Selected type prefix is applied to all expressions. Copy typed expressions (e.g., int32(0xFF)) directly into your Go source — no manual casting needed.
Use Cases
Config & Magic Number Protection
Disguise hardcoded configuration constants, port numbers, timeouts, and magic values in your Go source code to make reverse engineering more difficult.
Cryptographic Constant Hiding
Obfuscate cryptographic seeds, API keys, initialization vectors, and other sensitive numeric constants embedded in Go binaries.
License Validation Checks
Hide license verification numbers, checksum seeds, and validation constants behind complex expressions to deter casual cracking attempts.
Game Development
Conceal game balance parameters, scoring thresholds, damage multipliers, spawn rates, and economy values in Go game servers and CLIs.
Proprietary Algorithm Protection
Disguise pricing formulas, bidding increments, rate calculations, and other proprietary numeric logic in commercial Go applications.
Binary Fingerprinting Prevention
Prevent binary fingerprinting based on known constant values. Obfuscating well-known numbers (255, 1024, 65535, etc.) makes pattern matching harder.
About Go Integer/Constant Obfuscation
What Is Go Number Obfuscation?
Number obfuscation in Go rewrites numeric literals into equivalent expressions that are harder to understand. Instead of writing const port = 8080, you might write const port = 0x1F90 or const port = 4040 + 4040. Go's numeric literal syntax supports hex (0x), octal (0o), binary (0b), and IEEE 754 floating point — all of which can be combined with expressions.
How the Obfuscation Engine Works
The obfuscator applies seven distinct techniques to each numeric input.Hex, octal, and binaryconvert to Go's literal format.Bitwise NOT uses the ^x complement operator.XOR exploits the identity x^0 = x.Arithmetic generates multi-step expressions like (n*5/5).Bit shiftuses << and >> operators with corrective expressions. For typed constants, the tool wraps expressions in Go type conversions like int32(0xFF). Each technique uses randomization so you get different output every time.
Go-Specific Considerations
Go has no implicit numeric type conversions, so type-annotated expressions require explicit casts (uint16(value)). The tool automatically applies the correct type wrapper based on your selection. Go's compiler performs constant folding at compile time, so obfuscated expressions like (100*2 + 5)compile to the same machine code as 205. There is zero runtime performance overhead — the obfuscation is resolved during compilation.
Privacy & Security
This tool runs entirely in your browser. Your numbers, type selections, and generated expressions never leave your device. There are no API calls, no server-side processing, no data storage, and no tracking. All obfuscation logic uses client-side JavaScript with no external dependencies. Your Go source code and constants remain completely private.
Related Obfuscator Tools
JavaScript Number Obfuscator
Obfuscate numeric literals in JavaScript code by converting them to math expressions, hex, octal, binary, and bitwise tricks.
JavaScript All-In-One Obfuscator
Combine multiple JS obfuscation techniques - variable renaming, string encoding, dead code, numbers, and control flow.
JavaScript Variable Name Deobfuscator
Analyze obfuscated JavaScript variable, function, and class names and suggest meaningful names based on usage context.
Java Control Flow Flattener
Flatten Java control flow into a switch-based dispatcher for obfuscation. Configurable depth with size analysis.
JavaScript Domain Lock Obfuscator
Add domain-locking to your JavaScript code with runtime hostname checks, encrypted allowed domain lists, and custom blocking.
CSS Variable Name Obfuscator
Rename CSS custom properties (--variable) and update all var() references across CSS, HTML, and JS. Shows full rename mapping.
Pixel Shuffle Image Obfuscator
Scramble and descramble images using seed-based pixel permutation. Fisher-Yates shuffle with Mulberry32 PRNG, lossless PNG output.
Image Noise Layer Obfuscator
Add controlled Gaussian, Uniform, or Salt & Pepper noise to obscure image details. Seed-based deterministic reversal, adjustable intensity.
Rust Integer/Literal Obfuscator
Obfuscate Rust numeric literals using hex, octal, binary, math expressions, bitwise tricks, and arithmetic combos. Supports i32, u64, f32, usize.
.NET String Encryptor/Obfuscator
Obfuscate C# string literals using hex escapes, Convert.FromBase64String, XOR encryption, char arrays, StringBuilder, and Unicode escapes.
.NET Integer/Number Obfuscator
Obfuscate .NET numeric literals using hex, binary, bitwise, arithmetic, Convert.ToInt32/64, type suffixes, and unchecked expressions. Supports int, long, float, decimal.
Swift String Obfuscator
Obfuscate Swift string literals using hex byte arrays, Data + Base64 encoding, XOR Data, Unicode scalars, and split concatenation. Copy generated code.
Bash Variable Name Obfuscator
Replace Bash variable names with short obfuscated names. Preserves builtins, special variables ($?, $@, $#), and environment variables (PATH, HOME). Complete mapping table.
Dart String Obfuscator
Obfuscate Dart string literals using hex escapes, String.fromCharCodes, Base64 decode, XOR encryption, split concatenation, and StringBuffer + writeCharCode calls.