SodiumException

Wrong decryption key! Decryption key has changed since this data were last saved, so data can't be decrypted. Please consult our manual at https://manual.limesurvey.org/Data_encryption#Errors.

/mnt/data/shnoulle/nginx/www/master/application/core/LSSodium.php(112)

100     /**
101      * 
102      * Decrypt encrypted string.
103      * @param string $sEncryptedString Encrypted string to decrypt
104      * @param bool $bReturnFalseIfError false by default. If TRUE, return false in case of error (bad decryption). Else, return given $encryptedInput value
105      * @return string Return decrypted value (string or unsezialized object) if suceeded. Return FALSE if an error occurs (bad password/salt given) or inpyt encryptedString
106      */
107     public function decrypt($sEncryptedString, $bReturnFalseIfError=false){     
108         if ($this->bLibraryExists === true){
109             if (!empty($sEncryptedString) && $sEncryptedString != 'null'){
110                 $plaintext = ParagonIE_Sodium_Compat::crypto_sign_open(base64_decode($sEncryptedString), $this->sEncryptionPublicKey);
111                 if ($plaintext === false){
112                     throw new SodiumException(sprintf(gT("Wrong decryption key! Decryption key has changed since this data were last saved, so data can't be decrypted. Please consult our manual at %s.", 'unescaped'), 'https://manual.limesurvey.org/Data_encryption#Errors'));
113                 } else {
114                     return $plaintext;
115                 }
116             }
117         } else {
118             return $sEncryptedString;
119         }
120 
121     }    
122  
123     /**
124      * 

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(425): LSSodium->decrypt()
420                 }
421             }
422         } else {
423             $attributes = $this->encryptAttributeValues($this->attributes, true, false);
424             foreach ($attributes as $key => $attribute) {
425                 $this->$key = $sodium->$action($attribute);
426             }
427         }
428     }
429     /**
430      * Function to show encryption symbol in gridview attribute header if value ois encrypted
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(335): LSActiveRecord->decryptEncryptAttributes()
330             $sodium = Yii::app()->sodium;
331 
332             return $sodium->decrypt($value);
333         } else {
334             // decrypt attributes
335             $this->decryptEncryptAttributes('decrypt');
336 
337             return $this;
338         }
339     }
340 
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/core/LSCActiveDataProvider.php(59): LSActiveRecord->decrypt()
54         
55         // decryption
56         if ($this->model->bEncryption){
57             foreach ($data as $row){
58                 if (!empty($row)){
59                     $row->decrypt();
60                 }
61 
62                 // decrypt all related models
63                 foreach ($row->relations() as $key => $related){
64                     if ($row->hasRelated($key) && !is_null($row->$key)){
2020-05-20 12:41:20 nginx/1.18.0 Yii Framework/1.1.22-dev