Laravel - DecryptException: 'The MAC is invalid'

后端 未结 6 1368
轮回少年
轮回少年 2020-12-02 00:21

In laravel for registration I\'m using encrypt algorithm for password instead of inbuilt bcrypt function in Laravel because to get password and send it to mail when password

6条回答
  •  猫巷女王i
    2020-12-02 00:25

    App key matters in encryption and decryption. I was having 2 sub domains with different projects in which I was encrypting value on sub domain and 1 and trying to decrypt on sub domain 2. Issue was resolved when both projects were having same appkey. Note: No projects should have same appkey!!!

    If you have imported DB form one environment to another, most likely you will face this error. Its recommended to have same APP_KEY as data source application in order to fix bug.

提交回复
热议问题