ksmz / gplay-encryptedpasswd
Handles the creation of the EncryptedPasswd field, required in Play Store's API calls
v2.0.0
2022-06-14 16:17 UTC
Requires
- php: ^7.4|^8
- paragonie/hidden-string: ^2.0
- phpseclib/phpseclib: ^3.0
Requires (Dev)
- pestphp/pest: ^1.21
This package is auto-updated.
Last update: 2025-03-14 22:08:24 UTC
README
Handles the creation of the "EncryptedPasswd" field, required by Play Store's internal APIs. This library is does not perform any additional tasks besides generating this field.
Install
composer require ksmz/gplay-encryptedpasswd
Usage
use ksmz\GPEncryptedPasswd\Encrypt; use ParagonIE\HiddenString\HiddenString; // Fetch your credentials from somewhere else. $gmailAddress = getenv('GOOGLE_EMAIL'); $gmailPassword = getenv('GOOGLE_PASSWORD'); // HiddenString hides sensitive information from backtraces. // Alternatively, this can be eventually be replaced by https://wiki.php.net/rfc/redact_parameters_in_back_traces in PHP 8.2 $encryptor = new Encrypt($gmailAddress, new HiddenString($gmailPassword)); echo $encryptor->encrypt(); // AFcb4KS4dW-knb6SS_VaeZRZVqSEZK9ExPO_zt8mgDISQBuEsLYwKzO9JYzar7m2Zjy5bih4MYkb0W46NMgYy_k0ckdehb_bmxrIjlTHHyPxMHH32P8GOlNjoSkt7QgmGEi5JbmoKFfYTo-9FNOioI-7W2l-e6zrw2OhOfSlYjvp2oHM1Q==
Credits/Other Libraries
https://github.com/subtletech/google_play_store_password_encrypter