cyrillify
v1.0.7
Published
Cyrillify obfuscates your text with Cyrillic homoglyphs. There are 15 uppercase and 7 lowercase identical homoglyphs shared between English and Cyrillic character sets. Each character in each pair has a distinct and unrelated ASCII code from its homoglyph
Downloads
59
Maintainers
Readme
Cyrillify
Cyrillify obfuscates your text with Cyrillic homoglyphs. There are 15 uppercase and 7 lowercase identical homoglyphs shared between English and Cyrillic character sets. Each character in each pair has a distinct and unrelated ASCII code from its homoglyphic counterpart, yet an identical character manifestation across most regular font weights and types. Swapping out English characters with their Cyrillic equivalents has the benefit of obfuscating text, cloaking the content of pages from scrapers and bots while allowing humans to read content as normal.
API
cyrillify(string
)
var cyrillify = require('cyrillify');
-- Example 1 --
console.log(cyrillify('U.N. Environment Envoy Quits After Audit of Expenses'));
Output should look identical.
U.N. Environment Envoy Quits After Audit of Expenses
-- But instead of being: "U.N. Environment Envoy Quits After Audit of Expenses"
-- Punycode will be: "U.N.xn-- nvirnmnt nv quits ftr udit f nss-uh0ae0ngdmkac66ajat9grf9e"
-- Example 2 --
console.log(cyrillify('[email protected], [email protected], [email protected], [email protected], [email protected]'));
Output should look identical.
[email protected], [email protected], [email protected], [email protected], [email protected]
-- But instead of being: "[email protected], [email protected], [email protected], [email protected], [email protected]"
-- Punycode will be: "[email protected], [email protected], [email protected], [email protected], [email protected]"
-- Example 3 --
console.log(cyrillify('Methanol was administered to rats, rhesus monkeys, and pigtail monkeys. Of these animals, only the pigtail monkey reliably developed a severe metabolic organic acidosis resembling that observed in humans.'));
Output should look identical.
Methanol was administered to rats, rhesus monkeys, and pigtail monkeys. Of these animals, only the pigtail monkey reliably developed a severe metabolic organic acidosis resembling that observed in humans.
-- But instead of being: "Methanol was administered to rats, rhesus monkeys, and pigtail monkeys. Of these animals, only the pigtail monkey reliably developed a severe metabolic organic acidosis resembling that observed in humans."
-- Punycode will be: "xn--thnl ws dministrd t rts-nrsecn9isab9qrcua xn-- rhsus mnks-qkjh7j8c xn-- nd igtil mnks-vtlg5g0h3a6e.xn-- f ths nimls-39jd2eb0m xn-- nl th igtil mnk rlibl dvld svr mtbli rgni idsis rsmbling tht bsrvd in humns-ce4dkaihgdro76alachbbfbbcuboc72fparrdju8k1a3khc2nsai."
Notes
Cyrillify obfuscates your text with Cyrillic homoglyphs. There are 15 uppercase and 7 lowercase identical homoglyphs shared between English and Cyrillic character sets. Each character in each pair has a distinct and unrelated ASCII code from its homoglyphic counterpart, yet an identical character manifestation across most regular font weights and types.
Cyrillify's output will appear identical to its input, however, the code used to represent it will be different. We can verify Cyrillify's work in two ways:
Punycode Verification
Punycode is a representation of Unicode with ASCII. It is the encoding system used in encoding internationalized domain names. We can verify Cyrillify's work by using any of the widely available Punycode converters, checking the associated Punycode of the output to ensure that it differs from the input (see examples below).
RegEx Verification
The quickest way to verify Cyrillify's work via regex is to hit Ctrl+F on Windows, or Command+F on Mac, and search some of the Cyrillified content to see if the computer can identify it.
Swapping English characters with their Cyrillic equivalents has the benefit of obfuscating text, cloaking the content of pages from scrapers and bots while allowing humans to read content as normal. This is particularly useful in shrouding email addresses from bots without compromising their visibility in the browser from humans.
In the event that you are posting and Cyrillifying 'spun' articles, search engine web crawlers such as Googlebot, Bingbot, etc., will not identify the duplicate content, hence, will not penalize nor demote your SERP ranking. Cyrillify can therefore be used as both a weapon and a shield. Behave yourself!
Installation
With npm do
$ npm install cyrillify
License
(MIT)
Copyright (c) 2018 David H. <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.