Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 28th, 2005, 04:14 PM
DTank DTank is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 DTank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 46 sec
Reputation Power: 0
Post RSA Encryption Bad Data Error

I have an application that is to take user inputed values (such as credit card numbers) and encrypt them, then write the data to a SQL table, and eventually retrieve the data from SQL and decrypt the data.
I am receiving a "Bad Data" error when I retrieve and try to decrypt the record from SQL, BUT... if I decrypt the data before writting it to SQL (straight from the textboxes) it decrypts fine.

I am converting the textbox strings using (FromBase64) as it has been said that (UTF-8 Encoding) can cause this error.

In the table the data type that I am using is varbinary for the encrypted data.

I'm using XML files to store the Public and Private Keys

If this makes any sense does anybody have any insight?

Reply With Quote
  #2  
Old January 31st, 2005, 03:07 PM
DTank DTank is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 DTank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 46 sec
Reputation Power: 0
It's Okay I got it,

Must Use Binary not VarBinary, and of course the most important, set the data length to 128

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > RSA Encryption Bad Data Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT