- PHP >= 8.1
利用するプロジェクトの composer.json に以下を追加する。
"repositories": {
"shimoning/encryption": {
"type": "vcs",
"url": "https://github.com/shimoning/encryption-php.git"
}
},その後以下でインストールする。
composer require shimoning/encryption- 文字列を openssl で暗号化
- それを base64 でエンコード
- 文字列を base64 でデコード
- それを openssl で復号化