SodiumException

Mauvaise clé de déchiffrement ! La clé de déchiffrement a changé depuis la dernière fois où cette donnée a été sauvegardée donc les données ne peuvent pas être déchiffrées. Veuillez consulter notre manuel à https://manual.limesurvey.org/Data_encryption#Errors.

/home/clients/0c1e2cd5a73d4ed12d8a8e6b4a74b10a/sites/enquete.rra.ch/application/core/LSSodium.php(141)

129      * Decrypt encrypted string.
130      * @param string $sEncryptedString Encrypted string to decrypt
131      * @param bool $bReturnFalseIfError false by default. If TRUE, return false in case of error (bad decryption). Else, return given $encryptedInput value
132      * @return string Return decrypted value (string or unsezialized object) if suceeded. Return FALSE if an error occurs (bad password/salt given) or inpyt encryptedString
133      * @throws SodiumException
134      */
135     public function decrypt($sEncryptedString, $bReturnFalseIfError = false): string
136     {
137         if ($this->bLibraryExists === true) {
138             if (!empty($sEncryptedString) && $sEncryptedString !== 'null') {
139                 $plaintext = ParagonIE_Sodium_Compat::crypto_secretbox_open(base64_decode($sEncryptedString), $this->sEncryptionNonce, $this->sEncryptionSecretBoxKey);
140                 if ($plaintext === false) {
141                     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'));
142                 } else {
143                     return $plaintext;
144                 }
145             }
146             return '';
147         }
148         return $sEncryptedString;
149     }
150 
151     /**
152      *
153      * Write encryption key to version.php config file

Stack Trace

#0
+
 /home/clients/0c1e2cd5a73d4ed12d8a8e6b4a74b10a/sites/enquete.rra.ch/application/models/LSActiveRecord.php(460): LSSodium->decrypt()
455             $updatedValues = $LEM->getUpdatedValues();
456             foreach ($attributes as $key => $attribute) {
457                 if ($action === 'decrypt' && array_key_exists($key, $updatedValues)) {
458                     continue;
459                 }
460                 $this->$key = $sodium->$action($attribute);
461             }
462         }
463     }
464 
465     /**
#1
+
 /home/clients/0c1e2cd5a73d4ed12d8a8e6b4a74b10a/sites/enquete.rra.ch/application/models/LSActiveRecord.php(337): LSActiveRecord->decryptEncryptAttributes()
332             $sodium = Yii::app()->sodium;
333 
334             return $sodium->decrypt($value);
335         } else {
336             // decrypt attributes
337             $this->decryptEncryptAttributes('decrypt');
338 
339             return $this;
340         }
341     }
342 
#2
+
 /home/clients/0c1e2cd5a73d4ed12d8a8e6b4a74b10a/sites/enquete.rra.ch/application/helpers/admin/export/Writer.php(313): LSActiveRecord->decrypt()
308                 $oToken->decrypt();
309                 $aResponse = array_merge($aResponse, $oToken->attributes);
310             }
311             $oResponse = Response::model($oSurvey->id);
312             $oResponse->setAttributes($response, false);
313             $oResponse->decrypt();
314             $aResponse = array_merge($aResponse, $oResponse->attributes);
315 
316             $elementArray = array();
317 
318             foreach ($oOptions->selectedColumns as $column) {
2021-10-27 08:38:39 Apache Yii Framework/1.1.24-dev