I am now using DPAPI to encrypt some private keys and store them into a database, the system works fine, however, i found some issue with Window 7 x64. The story is like bellow:
the key we are going to encrypt is a fixed length string, 32 characters, actually it's a GUID. and I need to encrypt them by DPAPI and encode the result by base 64, and thus will generate somehow a string with about 200 characters, I use a varchar(255) to
store it in database. but for Windows 7 x64, the result seems much longer, more than 300 characters. so our application fails to save it to database.
can anyone tell me what is the expected size by encrypting by DPAPI? or for my case, how long the database column should be sufficient?
Thank you in advance and waiting for your suggestion.
Liang(China) From SAP
View Complete Post