Crypt> function

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
hagchr
Automation Wizard
Posts: 331
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

Crypt> function

Post by hagchr » Sun May 15, 2016 7:04 pm

I have had a look at the Crypt> function and also some of the related old forum posts.

Is my understanding correct that the encyption strength (32, 64, or 96 bit) refers to the max length of the key? For example if you set CRYPT_LEVEL=1 then the active pass key cannot be greater than 32 bit, ie 4 characters (4*8=32). I tried an example that seems to confirm it - any characters after the first 4 have no impact.

Some of the old forum posts are using longer pass keys without changing the CRYPT_LEVEL which would then be less secure than the writer thinks.

Code: Select all

Let>CRYPT_LEVEL=1
//CRYPT_LEVEL=1 32 bit
//CRYPT_LEVEL=2 64 bit
//CRYPT_LEVEL=3 96 bit

Let>str=This is a test of the Crypt function.

Let>key1=abcd321
Crypt>key1,str,res1
mdl>res1

Let>key2=abcd123
Crypt>key2,res1,res2
MDL>res2

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Crypt> function

Post by Marcus Tettmar » Tue May 17, 2016 10:26 am

Yes
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts