# JustasMasiulis/xorstr

heavily vectorized c++17 compile time string encryption.

Repository: https://github.com/JustasMasiulis/xorstr
Canonical: https://ross.abutalabs.com/products/xorstr
Language: C++
License: Apache-2.0
License Family: permissive
Topics: encryption, cpp, cpp17, compile-time, template, xor, string, vectorized
Last push: 2021-11-19T16:59:01+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3107, "days_push": 1748, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1441, forks 196 (observed 2026-08-28T04:04:44.271741+00:00)

## What it is
A header-only C++17 library that encrypts string literals at compile time using XOR with 64-bit keys and vectorized (SSE/AVX) inlined decryption. It hides strings from static analysis by embedding encrypted data directly into code rather than .rdata sections.

## Use cases
- hide string literals from reverse engineering
- obfuscate strings in C++ binaries
- prevent static analysis of embedded strings
- encrypt compile-time constants in C++
- protect malware-unrelated software from string-based scanning
- avoid plaintext strings in .rdata section

## When to choose
- you need compile-time string obfuscation in C++ with zero runtime dependencies
- you want decryption fully inlined and vectorized for performance
- you need cross-platform support for GCC, Clang, and MSVC

## When to avoid
- you need strong cryptographic security rather than obfuscation
- your project targets compilers older than GCC 7.1 or Clang 5.0
- you need runtime-configurable encryption keys
- your CPU lacks SSE and you cannot tolerate AVX-only paths

## Facets
- artifact type: library
- maturity: maintenance
- function: cryptography, serialization
- domain: security, developer-tools
- platform: cpp, cross-platform, windows
- tags: compile-time, string-encryption, obfuscation, header-only, xor, simd, avx, cpp17, reverse-engineering-protection, linux, macos

## Member repositories
- JustasMasiulis/xorstr (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:44.271741+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:26.648681+00:00, confidence not recorded.
  - readme: https://github.com/JustasMasiulis/xorstr (fetched 2026-08-28T04:04:44.271741+00:00, sha a9fa6d5bc921)
- Data as of 2026-08-30T08:39:29.467469+00:00.
