{"id":24972434,"url":"https://github.com/blocktrail/cryptojs-aes-php","last_synced_at":"2025-04-11T06:30:27.949Z","repository":{"id":36068987,"uuid":"40368316","full_name":"blocktrail/cryptojs-aes-php","owner":"blocktrail","description":"This is a **tiny** package to make it a little bit easier to encrypt and decrypt in a manner compatible with `CryptoJS`.","archived":false,"fork":false,"pushed_at":"2022-02-14T08:52:29.000Z","size":128,"stargazers_count":46,"open_issues_count":1,"forks_count":10,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T04:26:31.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"xeon2007/BPR","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blocktrail.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":"2015-08-07T15:51:43.000Z","updated_at":"2024-10-21T12:13:51.000Z","dependencies_parsed_at":"2022-08-17T18:31:08.736Z","dependency_job_id":null,"html_url":"https://github.com/blocktrail/cryptojs-aes-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fcryptojs-aes-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fcryptojs-aes-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fcryptojs-aes-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fcryptojs-aes-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocktrail","download_url":"https://codeload.github.com/blocktrail/cryptojs-aes-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248355234,"owners_count":21089974,"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":"2025-02-03T17:09:32.411Z","updated_at":"2025-04-11T06:30:27.899Z","avatar_url":"https://github.com/blocktrail.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"CryptoJS AES PHP\n================\nThis is a **tiny** package to make it a little bit easier to encrypt and decrypt in a manner compatible with `CryptoJS`.\n\nCrypto\n------\n - Cypher: AES-256\n - Mode: cbc\n - Key Derivation: evpkdf (OpenSSL custom, MD5, 1 iteration)\n\nInstallation\n------------\nYou will need to be using [Composer](http://getcomposer.org/) in your project.\nIf you aren't using Composer yet, it's really simple! Here's how to install composer and this package:\n\n```\n# Install Composer\ncurl -sS https://getcomposer.org/installer | php\n\n# Add the BlockTrail SDK as a dependency\nphp composer.phar require blocktrail/cryptojs-aes-php\n``` \n\nNext, require Composer's autoloader, in your application, to automatically load required packages in your project:\n```PHP\nrequire 'vendor/autoload.php';\nuse Blocktrail\\CryptoJSAES\\CryptoJSAES;\n```\n\nOr if put the following in your `composer.json`:\n```\n\"blocktrail/cryptojs-aes-php\": \"~0.1.0\"\n```\n\nUsage\n-----\n```php\nuse Blocktrail\\CryptoJSAES\\CryptoJSAES;\n\n$passphrase = \"my passphrase\";\n$text = \"example value\";\n\n$encrypted = CryptoJSAES::encrypt($text, $passphrase);\nvar_dump(\"Encrypted: \", $encrypted);\n\n$decrypted = CryptoJSAES::decrypt($encrypted, $passphrase);\nvar_dump(\"Decrypted: \", $decrypted);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocktrail%2Fcryptojs-aes-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocktrail%2Fcryptojs-aes-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocktrail%2Fcryptojs-aes-php/lists"}