{"id":17060177,"url":"https://github.com/jas-/jquery.pidcrypt","last_synced_at":"2025-04-12T18:24:54.571Z","repository":{"id":66122375,"uuid":"982133","full_name":"jas-/jQuery.pidCrypt","owner":"jas-","description":"PKI key ring for your browser forms","archived":false,"fork":false,"pushed_at":"2013-04-02T14:18:07.000Z","size":757,"stargazers_count":40,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T12:46:37.847Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jas-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-12T20:16:29.000Z","updated_at":"2023-11-03T17:08:51.000Z","dependencies_parsed_at":"2023-02-19T23:00:42.720Z","dependency_job_id":null,"html_url":"https://github.com/jas-/jQuery.pidCrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-%2FjQuery.pidCrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-%2FjQuery.pidCrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-%2FjQuery.pidCrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-%2FjQuery.pidCrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jas-","download_url":"https://codeload.github.com/jas-/jQuery.pidCrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248611449,"owners_count":21133112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-14T10:36:25.111Z","updated_at":"2025-04-12T18:24:54.543Z","avatar_url":"https://github.com/jas-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#jQuery plugin to impliment RSA public key encryption\n\n  Utilizes the pidCrypt libraries for client public key\n  encryption while the associated PHP class uses\n  OpenSSL to generate the necessary private/public key pairs used\n  by this plug-in\n\n  Fork me @ https://www.github.com/jas-/jQuery.pidCrypt\n\n## REQUIREMENTS:\n* jQuery libraries (required - http://www.jquery.com)\n* pidCrypt RSA \u0026 AES libraries (required - https://www.pidder.com/pidcrypt/)\n* jQuery cookie plugin (optional - http://plugins.jquery.com/files/jquery.cookie.js.txt)\n* OpenSSL \u003c 0.9.8\n* PHP \u003c 5.3\n* A modern browser (doh!)\n\n## FEATURES:\n* Multiple key support\n* AES-256-CBC encryption of all keyring data\n* Modal window dialog for selection of appropriate keyring entry when multiple keys exist\n* HTML5 localStorage support\n* HTML5 sessionStorage support\n* Cookie support\n* Debugging output\n\n## SCREENSHOT:\nHere is an screenshot of an impelmentation bound to a form with multiple public keys forcing\na modal window pop-up along with debugging output at the bottom showing the encrypted public\nkeys stored within the HTML5 storage options.\n\n![jQuery.pidCrypt](https://raw.github.com/jas-/jQuery.pidCrypt/master/screenshots/screenshot-1.png)\n\n## OPTIONS:\n* appID: Optional CSRF token\n* storage: HTML5 localStorage, sessionStorage and cookies supported\n* callback: Optional function used once server recieves encrypted data\n* preCallback: Optional function to perform prior to form submission\n* errCallback: Optional function to perform on errors\n\n## EXAMPLES:\nHere are a few usage examples to get you started\n\nDefault usage using HTML5 localStorage\n\n```javascript\n$('#form').pidCrypt();\n```\n\nDefault Using HTML5 sessionStorage\n\n```javascript\n$('#form').pidCrypt({storage:'sessionStorage'});\n```\n\nDefault using cookies (requires the jQuery cookie plug-in)\n\n```javascript\n$('#form').pidCrypt({storage:'cookie'});\n```\n\nExample of using the callback method to process server response\n\n```javascript\n$('#form').pidCrypt({callback:function(){ console.log(this); }});\n```\n\nExample of using the preCallback method to load a function prior to form\nsubmission\n\n```javascript\n$('#form').pidCrypt({preCallback:function(){ console.log(this); }});\n```\n\nExample of using the errCallback method to load a function on error\n\n```javascript\n$('#form').pidCrypt({preCallback:function(){ console.log(this); }});\n```\n\nExample of enabling a custom CSRF token (sets the X-Alt-Referer header value)\n\n```javascript\n$('#form').pidCrypt({appID:'\u003c?php echo $_SESSION['csrf-token']; ?\u003e'});\n```\n\nAuthor: Jason Gerfen \u003cjason.gerfen@gmail.com\u003e\nLicense: GPL (see LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjas-%2Fjquery.pidcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjas-%2Fjquery.pidcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjas-%2Fjquery.pidcrypt/lists"}