New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alphahax

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alphahax - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

index.js

@@ -39,3 +39,5 @@ module.exports = alphahax;

var ret = [].map.call(word.split(''), function (l) {
return (/^[a-zA-Z]+$/).test(l) ? alpha[l] : "'"+ l +"'";
if (!(/^[a-zA-Z]+$/).test(l)) return "'"+ l +"'";
else if ((/[A-Z]+/g).test(l)) return "("+ alpha[l.toLowerCase()] + ").toUpperCase()";
else return alpha[l];
});

@@ -42,0 +44,0 @@ return ret.join('+');

{
"name": "alphahax",
"version": "0.0.1",
"version": "0.0.2",
"description": "Fun little hack for Javascript for generating alphabet letters",

@@ -5,0 +5,0 @@ "main": "index.js",

alphahax
========
Fun little hack for Javascript for generating alphabet letters
Fun little hax for Javascript for generating alphabet letters

@@ -14,4 +14,8 @@ ## install

because I thought it would be cool to do
because I thought it would be cool to do br0
## what's left?
check out `index.js` and look at the letters without obfuscation. someone should totally fork hax it up and pull request me. plz
## usage

@@ -26,2 +30,6 @@

// it knows about uppercase letters
var JosephWerle = alphahax('Joseph Werle');
eval(JosephWerle); // Joseph Werle
// it can handle spaces too for phrases

@@ -33,6 +41,6 @@ var iliketohaxstuff = alphahax('i like to hax stuff'); // (''+void 0)[5]+' '+(typeof !!2)[3]+(''+void 0)[5]+'k'+(typeof !!1)[4]+' '+(''+!!1)[0]+(''+{})[1]+' '+'h'+(''+(+'.'))[1]+'x'+' '+(typeof '')[0]+(''+!!1)[0]+(''+!!1)[2]+(typeof Function())[0]+(typeof Function())[0]

// it can handle crazy characters too
var crazy = alphahax('it also accepts tons of other characters and stuff like !@#$%^& #@$%@% &^%#*&');
var crazy = alphahax('it also accepts tons of other characters and stuff like !@#$%^& #@$%@% &^%#*&'); // (''+void 0)[5]+(''+!!1)[0]+' '+(''+(+'.'))[1]+(typeof !!2)[3]+(typeof '')[0]+(''+{})[1]+' '+(''+(+'.'))[1]+'c'+'c'+(typeof !!1)[4]+'p'+(''+!!1)[0]+(typeof '')[0]+' '+(''+!!1)[0]+(''+{})[1]+(typeof !!3)[6]+(typeof '')[0]+' '+(''+{})[1]+(typeof Function())[0]+' '+(''+{})[1]+(''+!!1)[0]+'h'+(typeof !!1)[4]+(''+!!1)[1]+' '+'c'+'h'+(''+(+'.'))[1]+(''+!!1)[1]+(''+(+'.'))[1]+'c'+(''+!!1)[0]+(typeof !!1)[4]+(''+!!1)[1]+(typeof '')[0]+' '+(''+(+'.'))[1]+(typeof !!3)[6]+{}.toString.call(new Date).toLowerCase()[8]+' '+(typeof '')[0]+(''+!!1)[0]+(''+!!1)[2]+(typeof Function())[0]+(typeof Function())[0]+' '+(typeof !!2)[3]+(''+void 0)[5]+'k'+(typeof !!1)[4]+' '+'!'+'@'+'#'+'$'+'%'+'^'+'&'+' '+'#'+'@'+'$'+'%'+'@'+'%'+' '+'&'+'^'+'%'+'#'+'*'+'&'
eval(crazy); // (''+void 0)[5]+(''+!!1)[0]+' '+(''+(+'.'))[1]+(typeof !!2)[3]+(typeof '')[0]+(''+{})[1]+' '+(''+(+'.'))[1]+'c'+'c'+(typeof !!1)[4]+'p'+(''+!!1)[0]+(typeof '')[0]+' '+(''+!!1)[0]+(''+{})[1]+(typeof !!3)[6]+(typeof '')[0]+' '+(''+{})[1]+(typeof Function())[0]+' '+(''+{})[1]+(''+!!1)[0]+'h'+(typeof !!1)[4]+(''+!!1)[1]+' '+'c'+'h'+(''+(+'.'))[1]+(''+!!1)[1]+(''+(+'.'))[1]+'c'+(''+!!1)[0]+(typeof !!1)[4]+(''+!!1)[1]+(typeof '')[0]+' '+(''+(+'.'))[1]+(typeof !!3)[6]+{}.toString.call(new Date).toLowerCase()[8]+' '+(typeof '')[0]+(''+!!1)[0]+(''+!!1)[2]+(typeof Function())[0]+(typeof Function())[0]+' '+(typeof !!2)[3]+(''+void 0)[5]+'k'+(typeof !!1)[4]+' '+'!'+'@'+'#'+'$'+'%'+'^'+'&'+' '+'#'+'@'+'$'+'%'+'@'+'%'+' '+'&'+'^'+'%'+'#'+'*'+'&'
eval(crazy); // it also accepts tons of other characters and stuff like !@#$%^& #@$%@% &^%#*&

@@ -39,0 +47,0 @@ ```

@@ -23,1 +23,6 @@ var assert = require('assert')

console.log(eval(crazy)); // it also accepts tons of other characters and stuff like !@#$%^& #@$%@% &^%#*&
var uppercase = alphahax('Joseph Werle');
console.log(uppercase);
assert(eval(uppercase) === 'Joseph Werle');
console.log(eval(uppercase));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc