Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arjixwastaken/3y3

Hide text in plain sight, using invisible characters.
https://github.com/arjixwastaken/3y3

Last synced: about 2 months ago
JSON representation

Hide text in plain sight, using invisible characters.

Awesome Lists containing this project

README

        

# 3y3
Hide text in plain sight, using invisible characters.

# Credit
Credit goes to [@yourcompanionAI](https://github.com/twilight-sparkle-irl), source: https://synthetic.garden/3y3.htm

I only re-implemented their algorithm into easy-to-use encode/decode functions.

Below is the original source code:
```js
function secondsightify(t) {
if ([...t].some(x => (0xe0000 < x.codePointAt(0) && x.codePointAt(0) < 0xe007f))) {
// 3y3 text detected. Revealing...
return (t => ([...t].map(x => (0xe0000 < x.codePointAt(0) && x.codePointAt(0) < 0xe007f) ? String.fromCodePoint(x.codePointAt(0) - 0xe0000) : x).join("")))(t)
} else {
// No 3y3 text was found, Encoding...
return (t => [...t].map(x => (0x00 < x.codePointAt(0) && x.codePointAt(0) < 0x7f) ? String.fromCodePoint(x.codePointAt(0)+0xe0000) : x).join(""))(t)
}
}
```