flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak MS <megharajdee...@gmail.com>
Subject Re: Encrypt in Flex - Decrypt in .NET
Date Thu, 31 Oct 2013 05:39:30 GMT
I used simple method using Base64 sometime back:

Flex:

*                  private* *function* encodeValue(value:String):String

                  {

                        *var* encodePassword:Base64Encoder =
*new*Base64Encoder();

                        encodePassword.encode(value);

                        *var* encodedPassword:String =
encodePassword.toString();

                        *return* encodedPassword;

                  }


.Net:


        byte [] decodedBytes = Convert.FromBase64String (encodedPassword);

            string decodedPassword= Encoding.UTF8.GetString (decodedBytes);


On Thu, Oct 31, 2013 at 8:10 AM, Angelo Anolin <angelo.anolin@gmail.com>wrote:

> Hi,
>
> Anyone have a sample implementation of encrypting a string in Flex and
> decoding it in .NET?
>
> Thanks.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message