
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Encode an integer into a Gmail address using dots
$ npm install --save dotifier
var dotifier = require('dotifier');
Dotifier can be loaded either directly, or using AMD.
Note: requires validator.js
<script type="application/javascript" src="dotifier.js"></script>
Example usage:
console.log(dotifier.encode('examplegmail@gmail.com', 1));
//=> 'examplegmai.l@gmail.com'
console.log(dotifier.encode('examplegmail@gmail.com', 9));
//=> 'exampleg.mai.l@gmail.com'
console.log(dotifier.encode('examplegmail@gmail.com', 1337));
//=> 'e.xa.mpl.e.g.mai.l@gmail.com'
console.log(dotifier.decode('examplegmai.l@gmail.com'));
//=> 1
console.log(dotifier.decode('exampleg.mai.l@gmail.com'));
//=> 9
console.log(dotifier.decode('e.xa.mpl.e.g.mai.l@gmail.com'));
//=> 1337
Gmail doesn't recognize dots as characters within usernames, meaning you can add or remove dots from a Gmail address without changing the actual destination address:
hom.er.j.sim.ps.on@gmail.com = homerjsimpson@gmail.com
HOMERJSIMPSON@gmail.com = homerjsimpson@gmail.com
Homer.J.Simpson@gmail.com = homerjsimpson@gmail.com
All these addresses belong to the same person. You can test this yourself if you try to sign in with your username with a dot removed or added to it. You'll still sign in to your account. Source
By treating a dot as a 1
and the absence of a dot as a 0
, we can store an arbitrary binary number in a Gmail address and later retrieve it:
0 = 0b0 = example@gmail.com
1 = 0b1 = exampl.e@gmail.com
2 = 0b10 = examp.le@gmail.com
3 = 0b11 = examp.l.e@gmail.com
10 = 0b1010 = exa.mp.le@gmail.com
43 = 0b101011 = e.xa.mp.l.e@gmail.com
Returns a string, or null if the input is invalid.
Required
Type: string
Gmail address to use.
Required
Type: number
Integer to encode.
Returns an integer, or null if the input is invalid.
Required
Type: string
Gmail address to decode.
MIT © Soullesswaffle
[1.2.0] - 2015-10-23
index.js
to dotifier.js
FAQs
Encode an integer into a Gmail address using dots
The npm package dotifier receives a total of 1 weekly downloads. As such, dotifier popularity was classified as not popular.
We found that dotifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.