Encrypt Decrypt Tool
Welcome to the Encrypt Decrypt Tool, Provided by HeavenCore IT Solutions.

Value/Cipher missing

"; } else { if ($Action == "Encrypt") { $Value = HCEncrypt($Value, $Salt . $Cipher); echo "
Your text has been encrypted using '" . $Cipher . "' as the Cipher:



"; } if ($Action == "Decrypt") { $Value = HCDecrypt($Value, $Salt . $Cipher); echo "
Your text has been decrypted using '" . $Cipher . "' as the Cipher:



"; } } } else { echo "
Please complete the form below.

"; } function HCEncrypt($text, $Cipher) { if ($text == "") { return ""; } else { return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $Cipher, $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))); } } function HCDecrypt($text, $Cipher) { if ($text == "") { return ""; } else { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $Cipher, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } } ?>
- Cipher Key

- Value

- Action



Tip:

This tool allows you to securely encrypt a string with reversible encryption (256bit Rijndael) using your own Cipher + a salt unique to this service.

Any string encrypted with a Cipher can only be decrypted with the exact same Cipher - if you dont use the same Cipher, the decrypted string will be garbage.

An SSL version of this tool is available on the following url:

https://secure.heavencore.co.uk/encryptionservice/go.php

Note: For security reasons (as explained here), this service only accepts POST paramaters:

  • cipher - This is the cipher unique to your application
  • value - The string you want to encrypt or decrypt
  • action - The action you want to perform, either "ENCRYPT" || "DECRYPT" (exluding quotes)

Example usage instructions will be posted shortly

Known Error Codes:

  • ERROR__NON_SSL_CONNECTION_DETECTED
  • ERROR__NO_VALUE_SPECIFIED
  • ERROR__NO_CIPHER_SPECIFIED
  • ERROR__NO_ACTION_SPECIFIED