??Difference Between utf8encoder.GetBytes and Encoding.ASCII.GetBytes

From: Phil C. (charlestek_at_rcn.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 12:20:56 -0500

Hi. (Using VB.Net) I have a symmetric encryption key stored as text,
encrytped by DPAPI in my web config that I use a handler
class to decrypt by the DPAPI and pass to the class that does the
encryption/decryption.
The decrypted DPAPI key is a string and needs to be converted to a byte
array for use by the encryption/decryption class. I'm confused as to the
difference using utf8encoder.GetBytes() or Encoding.ASCII.GetBytes() to do
this.

Thanks,

Phil
Boston, MA



Relevant Pages

  • Re: CryptProtectData across reboot on XP
    ... Since DPAPI backup/recovery support doesn't exist on NT4 we have ... > I can understand the backup information not being available with no DC available, but that should be a failure scenario - the primary decryption with the user's password should produce the master key. ... This password-derived key is then used with Triple-DES to encrypt the MasterKey, which is finally stored in the user's profile directory. ... DPAPI will use the current password to decrypt the "Credential History" file and try the old password to decrypt the MasterKey. ...
    (microsoft.public.platformsdk.security)
  • How do I Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET)?
    ... Use DPAPI to Encrypt and Decrypt Data ... The code below demonstrates how to call Data Protection API (DPAPI) ... In addition to encryption and decryption, ... public static string Encrypt ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: DPAPI Exception Decrypting across domain
    ... if you use the Machine Store you can only decrypt on the machine where you ... If you want to use DPAPI using a specific user - factor out the encryption/decryption ... web services tier server and a database server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: OAEP Decryption Error
    ... > I am trying to do encryption/decryption with RSA. ... The idea is to take a 80 byte array and encrypt it and then ... > decrypt that result to get the original 80 byte array. ... > do the decryption I am getting a "Error occurred while decoding OAEP ...
    (microsoft.public.dotnet.security)
  • Re: EFS Certificates and Keys when Changing Password
    ... I don't want DPAPI to unlock old keys when a password has been ... >> Drew Cooper ... >>> The certificate/key remains unchanged, ... >>> encryption/decryption of files in addition to the original ...
    (microsoft.public.windowsxp.security_admin)