EosAES.php 332 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * EOS对称性加密
  4. * User: ben
  5. * Date: 2018/9/19
  6. * Time: 下午2:59
  7. */
  8. class EosAES extends AES {
  9. public function __construct($key = null) {
  10. $key = $key ?: $GLOBALS['walletPwd'];
  11. $iv = 'www.duowan.com';
  12. $method = 'aes-256-cbc';
  13. parent::__construct($key, $iv, $method);
  14. }
  15. }