private static string GetSecretKey(IGxContext context) { string hashSalt = string.Empty; Config.GetValueOf("VER_STAMP", out hashSalt); //Some random SALT that is different in every GX App installation. Better if changes over time string secretKey = GXUtil.GetEncryptionKey(context, string.Empty) + hashSalt; if (secretKey.Length < SecretKeyMinimumLength) { return(StringUtil.PadL(secretKey, SecretKeyMinimumLength, '0')); } else { return(secretKey); } }