{"id":19251230,"url":"https://github.com/rexops/rex-certencryption","last_synced_at":"2026-06-16T03:31:29.853Z","repository":{"id":33873907,"uuid":"37583232","full_name":"RexOps/rex-certencryption","owner":"RexOps","description":"Encrypt your data with OpenSSL/RSA keys","archived":false,"fork":false,"pushed_at":"2016-06-22T11:33:26.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T16:48:40.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/RexOps.png","metadata":{"files":{"readme":"README.pod","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":"2015-06-17T08:42:19.000Z","updated_at":"2017-12-16T22:56:39.000Z","dependencies_parsed_at":"2022-09-12T17:10:55.616Z","dependency_job_id":null,"html_url":"https://github.com/RexOps/rex-certencryption","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/RexOps/rex-certencryption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-certencryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-certencryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-certencryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-certencryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexOps","download_url":"https://codeload.github.com/RexOps/rex-certencryption/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-certencryption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34390052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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-11-09T18:21:11.660Z","updated_at":"2026-06-16T03:31:29.836Z","avatar_url":"https://github.com/RexOps.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=head1 NAME\n\nCertencryption - Store strings encrypted.\n\nThis is a module which stores strings (like passwords, private keys, ...) in a secure way. Certencryption uses OpenSSL private key for encryption.\n\n=head1 SYNOPSIS\n\n use Certencryption;\n   \n user \"root\";\n password decrypt($encrypted_string);\n   \n\n=head1 USAGE\n\nTo use this module you need a private key with which you can decrypt your data. You also need a public key with which you can encrypt your data.\n\n=head2 KEY GENERATION\n\nTo generate a public/private keypair you can use the provided I\u003cgenerate_key\u003e task.\n\n  rex Certencryption:generate_key [--name=default [--size=4096]]\n\nThis will create a folder I\u003ckeys\u003e and place the two keyfiles in it.\n\n\n=head2 REXFILE\n\nTo encrypt or decrypt strings you have to include the I\u003cCertencryption\u003e module in your Rexfile.\n\n use Certencryption;\n   \n key_file \"keys/default\";\n   \n user \"root\";\n password decrypt($encrypted_string);\n\nThe I\u003ckey_file\u003e command tells the module which key file it should use for the decryption. To encrypt a string you also need to have a public key. In this example the public key should be found in I\u003ckeys/default.pub\u003e.\n\n my $base64_encrypted_string = encrypt(\"this is secret\");\n\n\n=head2 PADDING\n\nTo define which padding should be used, you can define this with the I\u003cpadding\u003e function. The default is I\u003cpkcs1_oaep\u003e. Valid padding option are:\n\n=over 4\n\n=item pkcs1_oaep (default)\n\n=item pkcs1\n\n=item sslv23 (due to a bug, only for decryption)\n\n=back\n\n=head1 COPYRIGHT\n\nCopyright 2015 FILIADATA GmbH\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-certencryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexops%2Frex-certencryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-certencryption/lists"}