Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListEncrypt UDT dataEncrypt UDT data
Previous
 
Next
New Post
6/18/2008 12:43 PM
 

i have try to find tutorial how to encrypt data but with no success

please if anyone know link where to find and how to do encryption of UDT data

 

tjank you

 
New Post
6/18/2008 1:16 PM
 

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/23/2008 3:58 AM
 

Thank You Sebastian ...

 
New Post
6/23/2008 12:24 PM
 

I have try to encrypt data bat i have problems ...

 

1. I have modify table UserDefinedData, FieldValue to varbinary(68)

2. procedure changes

USE [dbj_a]
GO
/****** Object:  StoredProcedure [dbo].[UserDefinedTable_AddData]    Script Date: 06/23/2008 18:11:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[UserDefinedTable_AddData]
@UserDefinedRowId    int,
@UserDefinedFieldId  int,
@FieldValue          varbinary(68)
AS
INSERT INTO dbo.UserDefinedData
            ( UserDefinedFieldId,  UserDefinedRowId,  FieldValue)
     VALUES (@UserDefinedFieldId, @UserDefinedRowId, EncryptByKey(Key_GUID('MyKey'), @FieldValue))

3. procedure changes

USE [db_a]
GO
/****** Object:  StoredProcedure [dbo].[UserDefinedTable_GetRow]    Script Date: 06/23/2008 18:16:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[UserDefinedTable_GetRow]
@UserDefinedRowId   int,
@ModuleId           int
AS
SELECT F.FieldTitle,
       cast(DecryptByKey(D.FieldValue) as varchar(16)) as "FieldValue",
       F.FieldType
FROM dbo.UserDefinedData D
INNER JOIN dbo.UserDefinedFields F on D.UserDefinedFieldId = F.UserDefinedFieldId
WHERE  D.UserDefinedRowId = @UserDefinedRowId
AND    F.ModuleId = @ModuleId

And I have this error while i try to add some data on dnn:

Error: Edit User Defined Table is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Operand type clash: ntext is incompatible with varbinary ---> System.Data.SqlClient.SqlException: Operand type clash: ntext is incompatible with varbinary at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.UserDefinedTable.SqlDataProvider.UpdateData(Int32 UserDefinedRowId, Int32 UserDefinedFieldId, String FieldValue) at DotNetNuke.Modules.UserDefinedTable.EditUserDefinedTable.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

Please what to do ?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListEncrypt UDT dataEncrypt UDT data


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out