Re: Crypto API using RC2 instead of RC4?

From: Valery Pryamikov (valery_at_harper.no)
Date: 11/24/05


Date: Thu, 24 Nov 2005 12:42:04 +0100

if you store cipher in xml - you should encode result bin array with base64
after encryption (ie. binary-base64 xsd datatype or someting like that) and
base64 decode it in bytearray before decryption.

-Valery.
http://www.harper.no/valery

"Matt" <mtaylor@gladstonemrm.com> wrote in message
news:1132825237.775234.148260@g44g2000cwa.googlegroups.com...
> Ok, thanks Valery.
>
> I shall digest what you've written.
> You might be right about the use of srings to store the data being a
> problem.
> The original KB code used files so I adapted it to use strings as I
> want to use the encrypted data in some XML I'm sending to the .Net
> application.
>
> Thanks,
>
> Matt
>



Relevant Pages

  • OpenOffice encryption
    ... >OpenOffice uses cipher in OFB mode with salt. ... OpenOffice seems to have two encryption algorithms. ... The other encryption algorithms used in OpenOffice is XML encryption. ...
    (sci.crypt)
  • Re: [PHP] sharing info between websites with XML?
    ... what kind of data you're sharing) in an easy to parse format (CSV, XML, ... It's relatively easy to setup the clients to login ... PHP supports encryption if you install the necessary libraries ... and configure PHP accordingly (manual> Mcrypt Encryption Functions). ...
    (php.general)
  • Re: Multiple layers of encryption
    ... using multiple layers of encryption also result in a weaker solution? ... some of which may need to be XML messages. ... As has already been indicated, multiple layers is generally overkill, the reference you are looking for is "Cascade ciphers: The importance of being first" by Maurer and Massey, basically it says that if the keys are indendent, it is no weaker than the inner most cipher., if the keys are not independent all bets are off. ...
    (sci.crypt)
  • Re: how these 2 functions may differ?
    ... The original encryption and base64 encoding is ... I attached vbscript code that does the encryption/encoding if you ... int intLength = strPwd.Length; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XML Document with BASE64 Encoded Sections
    ... The XML doc contains a reference to the schema, so I would think the solution would be to scan the xsd for base64 types and then pull out these sections from the xml fragment and convert to ascii. ... XmlSchemaDatatype currentType = validator.SchemaType; ...
    (microsoft.public.dotnet.languages.csharp)