[Decrypt_BlowFish] decrypts a string. Accepts two parameters, a string to be decrypted and a -Seed keyword with the key or password for the decryption.
The exact same -Seed must be used when decrypting the text as was passed to [Encrypt_BlowFish]. If the seed is forgotten there is no way to retrieve the original value of the encrypted text.
Decrypt_BlowFish(-Seed='Password', 'Decrypt Value')
Use the [Decrypt_BlowFish] method with the same -Seed parameter that was passed to the [Encrypt_BlowFish] method when the string was encrypted.
The following example decrypts a phrase that was encrypted using the same whimisical password.
Note: encodeHex and DecodeHex are used to provide URL-safe strings.
Code
local(x = Encrypt_Blowfish(
-Seed='I sell rhino fertilizer down by the sea shore!',
'The quick brown fox jumped over the running rhino.'
)->encodeHex
)
#x
'\r\r'
Decrypt_BlowFish(
-Seed='I sell rhino fertilizer down by the sea shore!',
#x->decodeHex
)
Result
CBD790AF71235BA2051D6A37B0AB8FF4F7B492E40731C7ACB5597CC5939C084F64B2589D3BC3E8D4DE61740C859020FA231E4D6672BF2E48AA The quick brown fox jumped over the running rhino.
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments