[php] dekrip

Viewer

  1. <?php 
  2. $var = 'let textParts = text.split(\':\');
  3.                         let iv = Buffer.from(textParts.shift(), \'hex\');
  4.                         let encryptedText = Buffer.from(textParts.join(\':\'), \'hex\');
  5.                         let decipher = crypto.createDecipheriv(\'aes-256-cbc\', Buffer.from(ENC_KEY), iv);
  6.                         let decrypted = decipher.update(encryptedText);
  7.                         decrypted = Buffer.concat([decrypted, decipher.final()]);
  8.                         return decrypted.toString();';

Editor

You can edit this paste and save as new: