Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arjixwastaken/3y3
- Owner: ArjixWasTaken
- Created: 2023-03-28T13:59:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-12T04:40:00.000Z (7 months ago)
- Last Synced: 2024-10-31T15:37:33.977Z (about 2 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 44
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.htmI 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)
}
}
```