{"id":16095540,"url":"https://github.com/meowgorithm/node-html-crypt","last_synced_at":"2026-01-12T02:25:57.059Z","repository":{"id":14486048,"uuid":"17198671","full_name":"meowgorithm/node-html-crypt","owner":"meowgorithm","description":"Self-decrypting JavaScript","archived":false,"fork":false,"pushed_at":"2015-02-03T22:56:49.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T20:39:08.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meowgorithm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-26T04:23:04.000Z","updated_at":"2019-12-27T16:44:30.000Z","dependencies_parsed_at":"2022-09-16T19:23:05.161Z","dependency_job_id":null,"html_url":"https://github.com/meowgorithm/node-html-crypt","commit_stats":null,"previous_names":["roshambo/node-html-crypt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meowgorithm/node-html-crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fnode-html-crypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fnode-html-crypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fnode-html-crypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fnode-html-crypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meowgorithm","download_url":"https://codeload.github.com/meowgorithm/node-html-crypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fnode-html-crypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T17:06:04.722Z","updated_at":"2026-01-12T02:25:57.031Z","avatar_url":"https://github.com/meowgorithm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-HTML-Crypt\n\nSelf-decrypting JavaScript for general purpose spam defense.\n\nBecause the internet really hasn’t changed that much in the last twelve years.™\n\nPorted from the excellent [HTML_Crypt][1] package by Mike Dransfield and\nChristian Weiske which was first released on September 8, 2002.\n\n[1]: http://pear.php.net/package/HTML_Crypt/\n\n## Installation\n\n    npm install html-crypt\n\n## Usage\n\n    var crypt = require('html-crypt');\n    crypt('\u003ca href=\"mailto:karl@example.com\u003eKarl Lagerfeld\u003c/a\u003e');\n\nThe above outputs a script tag with some gnarly looking JavaScript that\nthat in turn self-decrypts to the given string on page load. Believe it or not,\nthis will still thwart most spam-bots.\n\n### Example output\n\n    \u003cscript type=\"text/javascript\"\u003evar a,s,nfunction rkxstbicjzemlnvofdpgawhyqu(s){r=\"\"for(i=0i\u003cs.lengthi++){n=s.charCodeAt(i)if(n\u003c128){n=n-7if(n\u003c32){n=127+(n-32)}}r+=String.fromCharCode(n)}return r}a=\"Ch'oylmD)thps{vArhysGhtwsl5jvt)ERhys'ShnlymlskC6hE\"document.write(rkxstbicjzemlnvofdpgawhyqu(a))\u003c/script\u003e\n\nThe above will automatically decrypt to `\u003ca href=\"mailto:karl@example.com\u003eKarl Lagerfeld\u003c/a\u003e`.\n\n## With Express 3.x\n\nAdding a Jade helper is easy. Add the following to your Express app…\n\n    app.locals.crypt = require('html-crypt');\n\n…and you'll get a helper function in your Jade templates:\n\n    p!= crypt('\u003ca href=\"mailto:karl@example.com\"\u003eKarl Lagerfeld\u003c/a\u003e')\n\n## To-Do\n\nWrite some tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fnode-html-crypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeowgorithm%2Fnode-html-crypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fnode-html-crypt/lists"}