Description

The EncryptGen Generator encrypts a string using various encryption algorithms. New Attributes with "password" as part of the Attribute name will automatically be assigned the EncryptGen. 


In This Article


Video Tutorial

The following video can be used to see a quick tutorial on how to use the EncryptGen Generator:



Generator Parameters

The following parameters may be configured for the EncryptGen Generator. Items with an asterisk* are required. 

  • textToEncryptGen* - The value that will be encrypted. It can be a constant or referenced value.
  • algorithm* - The encryption algorithm to use for encrypting. The choices are: 
    • MD5
    • SHA-1
    • SHA-256
    • SHA-384
    • SHA-512
  • upperCase* - Determines whether to output the result in upperCase or not. If true, the output will be upperCase.


Example 1 - Encrypt Passwords Using the SHA-256 Algorithm

A tester needs to test a system where passwords must be encrypted before they are stored or sent to an authentication service. 



This example uses two Linked Generators:

  • RandomStringGen (password) - generates a 10-character password consisting of letters and numbers.
  • EncryptGen (encrypted) - generates the encrypted value for each password. 



RandomStringGen

  • length - 10 characters
  • stringType - letters and numbers
  • casetType - All, upper and lower case



EncryptGen

  • textToEncrypt - references the RandomStringGen (gen1).
  • algorithm - SHA-256



Example 2 - Encrypt Credit Card Numbers Using the SHA-512 Algorithm

A tester needs to encrypt stored credit card numbers using SSH-512 before sending them to another system in their workflow. This example will reference a creditCard Attribute.


EncryptGen

  • textToEncrypt - references the creditCard Attribute within the Domain. 
  • algorithm - SHA-512