Deterministic hash encoding with scattered vibes - encodes secrets into random-looking hashes with embedded tweaks
npm install fcuk.js> Deterministic hash encoding with scattered vibes š
Generate random-looking hashes with embedded secrets and custom tweaks. Everything is deterministic - no storage needed!
``bash`
npm install fcuk.js
`javascript
import fcuk from 'fcuk.js';
// Generate hash
const hash = fcuk.you({
secret: 'admin_access_granted',
vibes: ['fcuk', '69', 'awesome'],
sprinkles: 64
});
console.log(hash);
// Output: 4A7F2c9E1F2C8u9K3B4D6FcuK4a2f3b5c6d7e8f...
// Decode hash
const decoded = fcuk.me(hash);
console.log(decoded);
// Output: admin_access_granted
`
Options:
- secret (string, required) - The hidden payloadvibes
- (array, optional) - Words/strings to scatter in hashsprinkles
- (number, optional, default: 64) - Hash length
Returns: Formatted hash string (mixedCase + l33t)
`javascript`
const hash = fcuk.you({
secret: 'token123',
vibes: ['secret', 'fcuk'],
sprinkles: 64
});
Parameters:
- hash (string) - Encoded hash from fcuk.you()
Returns: Decoded secret string
`javascript`
const decoded = fcuk.me(hash);
Options: Same as fcuk.you()
Returns: { hash, timeline }
`javascript
const { hash, timeline } = fcuk.youWithTimeline({
secret: 'data',
vibes: ['cool']
});
console.log(timeline);
// {
// step1_seed: 123456,
// step2_secretEncoded: '...',
// step3_randomHash: '...',
// step4_vibesScattered: '...',
// step5_rawHash: '...',
// step6_formatted: '...'
// }
`
`javascript`
fcuk.youPretty(hash);
// Outputs colorized terminal output with highlighted vibes
ā
Deterministic - Same inputs always produce same output
ā
Scattered Tweaks - Vibes are character-scattered, hard to find
ā
XOR Encoding - Uses XOR cipher for encoding
ā
Default Formatting - mixedCase + l33t by default
ā
No Storage - Algorithm is stateless
ā
Browser & Node.js - Works everywhere
Input:
`javascript`
fcuk.you({
secret: 'admin_access',
vibes: ['fcuk', '69', 'awesome']
})
Output (formatted with mixedCase + l33t):
``
4A7F2c9E1F2C8u9K3B4D6F8a9S7E2c1R3e2Tfcuk4a2f3b5c6d7e8f
- Mixed case: 4A7F2c vs 4a7f2c0=O, 1=I, 3=E, 4=A, 5=S, 7=T, 8=B
- l33t: fcuk
- XOR encoded secret after
- š® Game token generation with easter eggs
- š Obfuscated user tokens (NOT for encryption)
- šØ Creative URL/ID generation
- šÆ Puzzle/game mechanics
- šµļø Hidden message encoding
`html``
ā ļø This library is for obfuscation only, not encryption. Do not use for securing sensitive data or passwords.
MIT - Feel free to use and modify!
Issues and PRs welcome at https://github.com/yourusername/fcuk.js
---
Made with š and chaos