des-encryption
Reactive icon

DES Encryption

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 11 Apr (12 hours ago)
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
0.0
 (0 ratings)
des-encryption

DES Encryption

Documentation
1.0.0

For the DESEncryption or DESDecryption client actions to function, the DES Script must be explicitly referenced in the Scope.

How to add the Script:

  1. In Service Studio, navigate to the Interface tab.
  2. Select the Screen or Block where you are calling the DES actions.
  3. In the Properties pane, locate the Scripts folder/property.
  4. Right-click and select Add Required Script.
  5. Select the DES script from the component's library.

[!CAUTION]

Runtime Error: If this script is missing, the client actions will fail to initialize the cryptographic library, resulting in a "ReferenceError: DES is not defined" in the browser console.


3. Client Actions Reference

A. DESEncryption

Used to secure sensitive data before storage or transmission.

  • Inputs:
    • Plaintext: The string to be encrypted.
    • SecretKey: A 64-bit symmetric key.
  • Outputs:
    • Ciphertext: The resulting encrypted string (Base64).

B. DESDecryption

Used to retrieve original data from a secured string.

  • Inputs:
    • Ciphertext: The encrypted Base64 string.
    • SecretKey: The same 64-bit key used for encryption.
  • Outputs:
    • DecryptedResult: The original plaintext (e.g., PROJECT ZERO ALPHA).

4. Integration Best Practices

Category

Requirement

Key Strength

Ensure the SecretKey is 64-bit. Use a high-entropy string to maximize security.

Data Alignment

Ensure data is 64-bit aligned before transmission to prevent padding mismatches.

Security Note

DES is a legacy protocol. For modern production environments requiring high security, use of AES-256 is recommended over DES.


5. Demo & Testing

You can verify the logic and UI implementation by visiting the Symmetric DES Engine Demo. The demo showcases the Plug & Play Script Architecture and the parameter-driven sample data workflow.