LassoScript Utility
Basics Browse Detail


Tag Link [Encrypt_BlowFish] Category Encryption
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


[Encrypt_BlowFish] encrypts a string. Accepts two parameters, a string to be encrypted and a -Seed keyword with the key or password for the encryption.

Ideally, the -Seed should be a long phrase rather than a simple password. The exact same -Seed must be used when decrypting the text using [Decrypt_BlowFish]. If the seed is forgotten there is no way to retrieve the original value of the encrypted text.

Note: The BlowFish tags are not binary-data safe. The encrypted string will be truncated at the first null character. To encrypt binary data first pass it through the [Encode_Base64] or [Encode_UTF8] tag.


[Encrypt_BlowFish: -Seed='Password', 'Encrypt Value']


Required Parameters
Encrypt Value The string which should be encrypted.
-Seed The password which will be used to encrypt the string. The same password must be specified when the data is decrypted.


To encrypt a string using the BlowFish algorithm:

Use the [Encrypt_BlowFish] tag with a long -Seed argument. The following tag encrypts a phrase using a whimsical -Seed argument.

[Encrypt_Blowfish-Seed='I sell seashells down by the sea shore!',
  'The quick brown fox jumped over the lazy dog.']