mcrypt and key bytes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marek Muszak

    mcrypt and key bytes

    Hello,

    I try use mcrypt but I want to use key in bytes, not in string. Encrypt
    text will be decrypt in Delphi with function where key is 16byte not string.

    How can I do this.

    Thanks for any help.

    best regards
    Marek
  • Tony Marston

    #2
    Re: mcrypt and key bytes

    A 16byte field is a string which is 16 bytes in length.

    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL



    "Marek Muszak" <marek.muszak@w p.pl> wrote in message
    news:c6ogrf$45h $2@korweta.task .gda.pl...[color=blue]
    > Hello,
    >
    > I try use mcrypt but I want to use key in bytes, not in string. Encrypt
    > text will be decrypt in Delphi with function where key is 16byte not[/color]
    string.[color=blue]
    >
    > How can I do this.
    >
    > Thanks for any help.
    >
    > best regards
    > Marek[/color]


    Comment

    • Marek Muszak

      #3
      Re: mcrypt and key bytes

      U¿ytkownik Tony Marston napisa³:[color=blue]
      > A 16byte field is a string which is 16 bytes in length.
      >[/color]

      Any Key String is hashed by mcrypt and this hashed value (16 bytes) is
      internally put in key. I don't know how mcrypt do this but I have to put
      the same 16bytes in Delphi function.

      best regards
      Marek

      Comment

      • Tony Marston

        #4
        Re: mcrypt and key bytes

        A 16 byte string is a 16 byte string in any language, regardless of what it
        contains.

        --
        Tony Marston

        This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL



        "Marek Muszak" <marek.muszak@w p.pl> wrote in message
        news:c6q9jb$d7c $1@korweta.task .gda.pl...[color=blue]
        > U¿ytkownik Tony Marston napisa³:[color=green]
        > > A 16byte field is a string which is 16 bytes in length.
        > >[/color]
        >
        > Any Key String is hashed by mcrypt and this hashed value (16 bytes) is
        > internally put in key. I don't know how mcrypt do this but I have to put
        > the same 16bytes in Delphi function.
        >
        > best regards
        > Marek[/color]


        Comment

        Working...