Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Does Encryption add Length?
Aaron Lowe
Posts: 37
 
Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Mar 09 10:07 AM
If I'm using the SLXRWEL dll to ecrypt a field, is this going to add length to the values?

So if I'm encrypting values that are 16 characters long, should I make the column VARCHAR2(32) instead?
[Reply][Quote]
Aaron Lowe
Posts: 37
 
Re: Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Mar 09 1:30 PM
So I answered my question by using test values. It does increase the length.

But by how much? I tested with 16 characters and it went out to 35. I tested with 12 and it went out to 26. Is there a pattern to how much it increases?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Mar 09 1:09 AM
My guess is that the length increases exponentially based on the seed.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Mar 09 8:33 AM
Make the fields Varchar(255) and let SQL Server handle the variable length retrieves and writes.
[Reply][Quote]
Aaron Lowe
Posts: 37
 
Re: Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Mar 09 10:06 AM
Excellent info.

Just an hour ago, I noticed the password field in our other database is Varchar2(240). So I was planning on doing what you said.
[Reply][Quote]
John H. Hedges
Posts: 62
 
Re: Does Encryption add Length?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Mar 09 12:54 AM
I think what you're seeing there is just the result of simple hex-encoding - twice the length of the original string, plus two or three additional bytes for the length specifier (or null terminator, whichever is being used). If the seed string or the password is longer than the string being encrypted, then the result will be twice the length of whatever the longest string is.

In other words, if you have a 16-character string that you want to store encrypted by SLXRWEL, you should be safe storing it in a 40-byte field, as long as the password you're using is 16 characters or less.

As always, this information should not be used as the basis for an actual cash wager...
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/28/2025 12:07:09 PM