OutSCIRT

About
Documentation
Downloads

O__xCrypt

Purpose: Encrypts the string it is provided. Still in early stage and only supports md5. Encryption method defined in the ini.php file.

Type: Server-side function

Inputs:

  • $O__input: The string to be encrypted.
  • $O__direction: "e" for encryption. Currently does not support decryption.

Outputs: A string with the contents between or include the tags are returned.

Use Case: Used as a method to encrypt a string, such as a password or other content, into a format that is not human-readable.

Examples:

  • Encrypt a string: $myEncryptedString = O__xCrypt("My great text.","e");
  • Save an encrypted string: $theTagContents = O__dataWrite("/path/to/my/file.txt",O__xCrypt($myEncryptedString));

Version Documented: 20180409