dpd3982 2018-09-15 03:49
浏览 69

使用shell_exec的aws-encryption-cli

I am using aws-encryption-cli for my data encryption. It works perfectly. I can encrypt and decrypt the data coming from client inputs and save it to the database.

If I fetch all the records, the system takes too much time to load the data. And the page shows an ERROR 504.

Here's my code:

Encryption process:

$ encryptedData = shell_exec('echo "'. $data .'" | aws-encryption-cli --encrypt -S -i - -m key='. AWSKEY .' -o - --encode');

Decryption process

$ decyptedData = shell_exec('echo "'. $data .'" | aws-encryption-cli --decrypt -S -i - -o - --decode');

Is there a way to make this program faster?

Thanks in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换