MCPcopy Create free account
hub / github.com/echQoQ/RustSL / simple_encrypt

Function simple_encrypt

build.rs:6–10  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

4use base64::{Engine as _, engine::general_purpose};
5
6fn simple_encrypt(data: &[u8]) -> String {
7 let key = b"rsl_secret_key_2025";
8 let encrypted: Vec<u8> = data.iter().enumerate().map(|(i, &b)| b ^ key[i % key.len()]).collect();
9 general_purpose::STANDARD.encode(&encrypted)
10}
11
12fn main() {
13 // Environment variables to watch for changes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected