AES encrypt/decrypt help please

  • Permalink
  • submit to reddit
  • Email
  • Follow


Hi,
I am trying to encrypt some text files with AES or similar encoding via 
a windows batch file, and then upload them to my server, then decode 
them with php, so I can enter the data within the files into my sql 
database.
Reason for the encryption is that the files are uploaded into a semi 
public folder, and I don't want anyone else who has access to that 
folder to be able to read the data from the files.

Anyway.. I have encrypted a file using ccrypt, uploaded this to the 
server, but using mcrypt in php I am getting garbage out.. I'm sure it 
is something to do with the IV string, but I can't seem to get the value 
for this out of the ccrypt encoded file..

Has anyone ever done a similar thing..?? any suggestions for something 
that might work..

What I need is a simple encryption that will run from a batch file or 
even from a VB script on windows pc, that I can decode easily using 
mcrypt in php on the server..

As you can probably tell... I'm not well up on this...!!!!

Any help would be most gratefully received..

Thanks
Andy
0
Reply Andy 3/27/2010 3:26:29 PM

See related articles to this posting


On Mar 27, 10:26=A0am, Andy <str_...@hotmail.com> wrote:
> Hi,
> I am trying to encrypt some text files with AES or similar encoding via
> a windows batch file, and then upload them to my server, then decode
> them with php, so I can enter the data within the files into my sql
> database.
> Reason for the encryption is that the files are uploaded into a semi
> public folder, and I don't want anyone else who has access to that
> folder to be able to read the data from the files.
>
> Anyway.. I have encrypted a file using ccrypt, uploaded this to the
> server, but using mcrypt in php I am getting garbage out.. I'm sure it
> is something to do with the IV string, but I can't seem to get the value
> for this out of the ccrypt encoded file..
>
> Has anyone ever done a similar thing..?? any suggestions for something
> that might work..
>
> What I need is a simple encryption that will run from a batch file or
> even from a VB script on windows pc, that I can decode easily using
> mcrypt in php on the server..
>
> As you can probably tell... I'm not well up on this...!!!!
>
> Any help would be most gratefully received..
>
> Thanks
> Andy

Maybe you could post a sample base64 encoded encrypted string and the
PHP program you're using to do the decryption?

According to wikipedia.org's entry on ccrypt, "ccrypt is based on the
Rijndael cypher, the same cipher used in the AES standard. However, in
the AES standard a 128-bit block size is used, whereas ccrypt uses a
256-bit block size.".  Per that, you'd need to be using
MCRYPT_RIJNDAEL_256.  It's also possible you're not using the correct
mode.  Maybe they're using CBC mode and you're using ECB or
something.  Another possibility: you're doing everything correctly but
ccrypt is employing compression, as well.

Also, if you find mcrypt to be unintuitive, you may find phpseclib's
Crypt_Rijndael to be more intuitive:

http://phpseclib.sourceforge.net/

<?php
$aes =3D new Crypt_Rijndael();
$aes->setBlockSize(256);
$aes->setKey(...);
$aes->setIV(...);

echo $aes->decrypt();
?>
0
Reply yawnmoth 3/27/2010 11:38:47 PM

In article 
<bd25fae1-f6c1-40ce-b42d-dcbf910b461a@t23g2000yqt.googlegroups.com>,
 yawnmoth <terra1024@yahoo.com> wrote:

> On Mar 27, 10:26�am, Andy <str_...@hotmail.com> wrote:
> > Hi,
> > I am trying to encrypt some text files with AES or similar encoding via
> > a windows batch file, and then upload them to my server, then decode
> > them with php, so I can enter the data within the files into my sql
> > database.
> > Reason for the encryption is that the files are uploaded into a semi
> > public folder, and I don't want anyone else who has access to that
> > folder to be able to read the data from the files.
> >
> > Anyway.. I have encrypted a file using ccrypt, uploaded this to the
> > server, but using mcrypt in php I am getting garbage out.. I'm sure it
> > is something to do with the IV string, but I can't seem to get the value
> > for this out of the ccrypt encoded file..
> >
> > Has anyone ever done a similar thing..?? any suggestions for something
> > that might work..
> >
> > What I need is a simple encryption that will run from a batch file or
> > even from a VB script on windows pc, that I can decode easily using
> > mcrypt in php on the server..
> >
> > As you can probably tell... I'm not well up on this...!!!!
> >
> > Any help would be most gratefully received..
> >
> > Thanks
> > Andy
> 
> Maybe you could post a sample base64 encoded encrypted string and the
> PHP program you're using to do the decryption?
> 
> According to wikipedia.org's entry on ccrypt, "ccrypt is based on the
> Rijndael cypher, the same cipher used in the AES standard. However, in
> the AES standard a 128-bit block size is used, whereas ccrypt uses a
> 256-bit block size.".  Per that, you'd need to be using
> MCRYPT_RIJNDAEL_256.  It's also possible you're not using the correct
> mode.  Maybe they're using CBC mode and you're using ECB or
> something.  Another possibility: you're doing everything correctly but
> ccrypt is employing compression, as well.
> 
> Also, if you find mcrypt to be unintuitive, you may find phpseclib's
> Crypt_Rijndael to be more intuitive:
> 
> http://phpseclib.sourceforge.net/
> 
> <?php
> $aes = new Crypt_Rijndael();
> $aes->setBlockSize(256);
> $aes->setKey(...);
> $aes->setIV(...);
> 
> echo $aes->decrypt();
> ?>

Hi, Many many thanks for your help...
I have attached 2 files, the csv file unencoded and the ccrypt encoded 
file, I'm pretty sure the mode is CBC,it's Rijndael 256 and we have been 
using MCRYPT_RIJNDAEL_256 to try to decode it, but so far have only got 
garbage out...
Best regards
Andy
[DatabaseName],claimform,,,,,,,,,,,,,,,,
gfkhdf,khgdkghd,khgd,khgd,khgdkghd,khgdk,hgdkh,gdkhg,dkhg,dkh,tdkh,gd,khgdty,dytdh,gdTDtkhdhgdGHDD,GHDGH,DKHGD,HKGD
JVVGHJGVjlhvjlhvhjvLHVjhv,jhvljhv,jhv,jhv,jhv,jhvjhvhj,vgc,tydty,fluy,fjh,fuyd,"td,jh",fluyrfu,fyjh,fjy,fd,jfc,jy

begin 644 claimform.csv.cpt
M:'DC,ZU?27VEDGZ#9,B0`!#,2=^V!HJSD,SG,%P2G)L`B!^K]]>FQ-'?4WYU
M@:'H#\*I-[\BO(],OE;%_)7)TAS2#:?:CXBFL)D&"?*<OWP4`SLHYN7>YQ3J
M:"2?NS(5>G@CX7PG0.,F0'EE[M\AU/^`T"9&&BR"[,4M2CE@?_GG=FWO6"&Z
M'_7HI%MW9;),[?BMNVHGQ?$!FCI/CG'8\G>T7U\5)M`Z?'531%UQO3Q(<R21
M[8VVW7/-3:&-R',%2;"W'5AW:#)8;ORR1VT/G/U=(%+!M+($F#LDAO!Z([/<
MC]CM=T?J*.SC7Y9[)!W#G6_1!9><3S(8+RY@KM$,TV?+AO`\=E5-/*2>E9-_
D73LN"$YM^#7M\>(K["T[O-9JW[T-UC2YGN)KUD1S<IDA#5BI
`
end
0
Reply Andy 3/28/2010 12:17:24 PM

In article <str_343-0141EA.12172428032010@news.newsguy.com>,
 Andy <str_343@hotmail.com> wrote:

> In article 
> <bd25fae1-f6c1-40ce-b42d-dcbf910b461a@t23g2000yqt.googlegroups.com>,
>  yawnmoth <terra1024@yahoo.com> wrote:
> 
> > On Mar 27, 10:26�am, Andy <str_...@hotmail.com> wrote:
> > > Hi,
> > > I am trying to encrypt some text files with AES or similar encoding via
> > > a windows batch file, and then upload them to my server, then decode
> > > them with php, so I can enter the data within the files into my sql
> > > database.
> > > Reason for the encryption is that the files are uploaded into a semi
> > > public folder, and I don't want anyone else who has access to that
> > > folder to be able to read the data from the files.
> > >
> > > Anyway.. I have encrypted a file using ccrypt, uploaded this to the
> > > server, but using mcrypt in php I am getting garbage out.. I'm sure it
> > > is something to do with the IV string, but I can't seem to get the value
> > > for this out of the ccrypt encoded file..
> > >
> > > Has anyone ever done a similar thing..?? any suggestions for something
> > > that might work..
> > >
> > > What I need is a simple encryption that will run from a batch file or
> > > even from a VB script on windows pc, that I can decode easily using
> > > mcrypt in php on the server..
> > >
> > > As you can probably tell... I'm not well up on this...!!!!
> > >
> > > Any help would be most gratefully received..
> > >
> > > Thanks
> > > Andy
> > 
> > Maybe you could post a sample base64 encoded encrypted string and the
> > PHP program you're using to do the decryption?
> > 
> > According to wikipedia.org's entry on ccrypt, "ccrypt is based on the
> > Rijndael cypher, the same cipher used in the AES standard. However, in
> > the AES standard a 128-bit block size is used, whereas ccrypt uses a
> > 256-bit block size.".  Per that, you'd need to be using
> > MCRYPT_RIJNDAEL_256.  It's also possible you're not using the correct
> > mode.  Maybe they're using CBC mode and you're using ECB or
> > something.  Another possibility: you're doing everything correctly but
> > ccrypt is employing compression, as well.
> > 
> > Also, if you find mcrypt to be unintuitive, you may find phpseclib's
> > Crypt_Rijndael to be more intuitive:
> > 
> > http://phpseclib.sourceforge.net/
> > 
> > <?php
> > $aes = new Crypt_Rijndael();
> > $aes->setBlockSize(256);
> > $aes->setKey(...);
> > $aes->setIV(...);
> > 
> > echo $aes->decrypt();
> > ?>
> 
> Hi, Many many thanks for your help...
> I have attached 2 files, the csv file unencoded and the ccrypt encoded 
> file, I'm pretty sure the mode is CBC,it's Rijndael 256 and we have been 
> using MCRYPT_RIJNDAEL_256 to try to decode it, but so far have only got 
> garbage out...
> Best regards
> Andy
> [DatabaseName],claimform,,,,,,,,,,,,,,,,
> gfkhdf,khgdkghd,khgd,khgd,khgdkghd,khgdk,hgdkh,gdkhg,dkhg,dkh,tdkh,gd,khgdty,d
> ytdh,gdTDtkhdhgdGHDD,GHDGH,DKHGD,HKGD
> JVVGHJGVjlhvjlhvhjvLHVjhv,jhvljhv,jhv,jhv,jhv,jhvjhvhj,vgc,tydty,fluy,fjh,fuyd
> ,"td,jh",fluyrfu,fyjh,fjy,fd,jfc,jy
> 
> begin 644 claimform.csv.cpt
> [Image]
> 
> end

Key is abc123 ..!
0
Reply Andy 3/28/2010 12:38:55 PM

"Andy" <str_343@hotmail.com> wrote in message 
news:str_343-0141EA.12172428032010@news.newsguy.com...

> I have attached 2 files

There is no point in attaching files to non-binary newsgroups. They get 
stripped, 


0
Reply rf 3/28/2010 1:41:18 PM

In article <20Jrn.15698$pv.15179@news-server.bigpond.net.au>,
 "rf" <rf@z.invalid> wrote:

> "Andy" <str_343@hotmail.com> wrote in message 
> news:str_343-0141EA.12172428032010@news.newsguy.com...
> 
> > I have attached 2 files
> 
> There is no point in attaching files to non-binary newsgroups. They get 
> stripped, 

whoops sorry.. I'm new to this...!
0
Reply Andy 3/28/2010 1:56:41 PM

Ok lets try this again again....:-
I do apologise for my previous efforts

This is the csv file before encoding with ccrypt:-

[DatabaseName],claimform,,,,,,,,,,,,,,,,
gfkhdf,khgdkghd,khgd,khgd,khgdkghd,khgdk,hgdkh,gdkhg,dkhg,dkh,tdkh,gd,khg
dty,dytdh,gdTDtkhdhgdGHDD,GHDGH,DKHGD,HKGD
JVVGHJGVjlhvjlhvhjvLHVjhv,jhvljhv,jhv,jhv,jhv,jhvjhvhj,vgc,tydty,fluy,fjh
,fuyd,"td,jh",fluyrfu,fyjh,fjy,fd,jfc,jy


This is the encoded file encrypted with ccrypt using RIJNDAEL_256 in CBC 
mode (I have base 64 encoded it after encryption)

aHkjM+KJoF9JfeKAosOtfsOJZMK7w6oAEMODSe+sguKIggbDpOKJpcOqw4PDgTBcEsO6w7UAw
6AfwrTLnOKXisK2xpLigJTvrIJTfnXDhcKww4sPwqzCqTfDuCLCusOoTMOmVuKJiMK4w6/igK
bigJwc4oCcCsOf4oGEw6jDoMK24oiew7QGCcOaw7rDuHwUAzsow4rDgu+sgcOBFMONaCTDvMK
qMhV6eCPCt3wnQOKAniZAeWXDk++sgiHigJjLh8OE4oCTJkYaLMOHw4/iiYgtSjlgf8uYw4F2
bcOUWCHiiKsfxLHDi8KnW3dl4omkTMOMwq/iiaDCqmon4omIw5IBw7Y6T8OpccO/w5p3wqVfX
xUm4oCTOnx1U0Rdcc6pPEhzJMOrw4zDp+KIguKAunPDlU3CsMOnwrtzBUniiJ7iiJEdWHdoMl
huwrjiiaRHbQ/DusudXSBSwqHCpeKJpATDsjskw5zvo796I+KJpeKAucOow7/DjHdHw40ow4/
igJ5fw7F7JB3iiJrDuW/igJQFw7PDuk8yGC8uYMOG4oCUDOKAnWfDgMOc76O/PHZVTTzCp8O7
w6/DrH9dOy4ITm3CrzXDjMOS4oCaK8OPLTvCusO3au+sgs6pCsO3NM+Aw7vigJprw7dEc3LDt
CEKWMKp


the key is abc123

Many thanks
0
Reply Andy 3/28/2010 3:43:01 PM

On Mar 28, 10:43=A0am, Andy <str_...@hotmail.com> wrote:
> Ok lets try this again again....:-
> I do apologise for my previous efforts
>
> This is the csv file before encoding with ccrypt:-
>
> [DatabaseName],claimform,,,,,,,,,,,,,,,,
> gfkhdf,khgdkghd,khgd,khgd,khgdkghd,khgdk,hgdkh,gdkhg,dkhg,dkh,tdkh,gd,khg
> dty,dytdh,gdTDtkhdhgdGHDD,GHDGH,DKHGD,HKGD
> JVVGHJGVjlhvjlhvhjvLHVjhv,jhvljhv,jhv,jhv,jhv,jhvjhvhj,vgc,tydty,fluy,fjh
> ,fuyd,"td,jh",fluyrfu,fyjh,fjy,fd,jfc,jy
>
> This is the encoded file encrypted with ccrypt using RIJNDAEL_256 in CBC
> mode (I have base 64 encoded it after encryption)
>
> aHkjM+KJoF9JfeKAosOtfsOJZMK7w6oAEMODSe+sguKIggbDpOKJpcOqw4PDgTBcEsO6w7UAw
> 6AfwrTLnOKXisK2xpLigJTvrIJTfnXDhcKww4sPwqzCqTfDuCLCusOoTMOmVuKJiMK4w6/igK
> bigJwc4oCcCsOf4oGEw6jDoMK24oiew7QGCcOaw7rDuHwUAzsow4rDgu+sgcOBFMONaCTDvMK
> qMhV6eCPCt3wnQOKAniZAeWXDk++sgiHigJjLh8OE4oCTJkYaLMOHw4/iiYgtSjlgf8uYw4F2
> bcOUWCHiiKsfxLHDi8KnW3dl4omkTMOMwq/iiaDCqmon4omIw5IBw7Y6T8OpccO/w5p3wqVfX
> xUm4oCTOnx1U0Rdcc6pPEhzJMOrw4zDp+KIguKAunPDlU3CsMOnwrtzBUniiJ7iiJEdWHdoMl
> huwrjiiaRHbQ/DusudXSBSwqHCpeKJpATDsjskw5zvo796I+KJpeKAucOow7/DjHdHw40ow4/
> igJ5fw7F7JB3iiJrDuW/igJQFw7PDuk8yGC8uYMOG4oCUDOKAnWfDgMOc76O/PHZVTTzCp8O7
> w6/DrH9dOy4ITm3CrzXDjMOS4oCaK8OPLTvCusO3au+sgs6pCsO3NM+Aw7vigJprw7dEc3LDt
> CEKWMKp
>
> the key is abc123
>
> Many thanks

alternatively you could use php on your local machine to encrypt the
files, this might make it easier to ensure your encrypt and decrypt
functions are compatable
0
Reply Eric 3/29/2010 2:53:29 PM

Il 28/03/2010 0.38, yawnmoth ha scritto:
> On Mar 27, 10:26 am, Andy <str_...@hotmail.com> wrote:
>> Hi,
>> I am trying to encrypt some text files with AES or similar encoding via
>> a windows batch file, and then upload them to my server, then decode
>> them with php, so I can enter the data within the files into my sql

> Also, if you find mcrypt to be unintuitive, you may find phpseclib's
> Crypt_Rijndael to be more intuitive:
> 
> http://phpseclib.sourceforge.net/
> 
is very very very slow, openssl have a multiple bug
impossible crypt decript and sign

0
Reply Gufo 4/14/2010 8:58:24 PM

On Apr 14, 3:58=A0pm, Gufo Rosso <spaaaaaamaaa...@libero.it> wrote:
> Il 28/03/2010 0.38, yawnmoth ha scritto:
>
> > On Mar 27, 10:26 am, Andy <str_...@hotmail.com> wrote:
> >> Hi,
> >> I am trying to encrypt some text files with AES or similar encoding vi=
a
> >> a windows batch file, and then upload them to my server, then decode
> >> them with php, so I can enter the data within the files into my sql
> > Also, if you find mcrypt to be unintuitive, you may find phpseclib's
> > Crypt_Rijndael to be more intuitive:
>
> >http://phpseclib.sourceforge.net/
>
> is very very very slow, openssl have a multiple bug
> impossible crypt decript and sign

Slow as though phpseclib's Crypt_AES may be it is worthwhile to point
out that it's also the fastest pure-PHP implementation around, per
this:

http://phpseclib.sourceforge.net/documentation/sym_crypt.html#sym_crypt_aes=
_benchmarks

It even manages to beat this implementation by quite a bit:

https://wiki.secondlife.com/wiki/Talk:AES_PHP_Implementation

And that's when mcrypt isn't available - when mcrypt is available
it'll use that and get even faster.

And as for "impossible crypt decript and sign"...  you're right.  AES
cannot be used for signing.  If you want to sign something, use RSA.
Or maybe HMACs, which are supposed to be the symmetric key analog to
signatures.  To use AES to create and verify signatures makes about as
much sense as using OpenSSL to render an animated GIF.
0
Reply yawnmoth 4/15/2010 5:51:19 AM
comp.lang.php 32531 articles. 6 followers. Post

9 Replies
575 Views

Similar Articles

[PageSpeed] 59


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

please please please PLEASE help!
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please help me out with this because this is a very serious issue for me and I need to learn more about this. And here it is again: I've been running postgres on my server for over a year now and the tables have become huge. I have 3 tables that have data over 10GB each and these tables are read very very frequently. In fact, heavy searches on these tables are expected every 2 to 3 minutes. T...

please please please PLEASE help!
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please help me out with this because this is a very serious issue for me and I need to learn more about this. And here it is again: I've been running postgres on my server for over a year now and the tables have become huge. I have 3 tables that have data over 10GB each and these tables are read very very frequently. In fact, heavy searches on these tables are expected every 2 to 3 minutes. T...

please please please PLEASE help!
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please help me out with this because this is a very serious issue for me and I need to learn more about this. And here it is again: I've been running postgres on my server for over a year now and the tables have become huge. I have 3 tables that have data over 10GB each and these tables are read very very frequently. In fact, heavy searches on these tables are expected every 2 to 3...

HELP HELP PLEASE HELP
i have written a slighly bastardized version of the class web page which is given as an example of how to use the html tokenizer. What I've written is: def parse(host) dict = { } @body= host.getHTML() if !@body return end theTags = ['select','input'] for x in theTags do tokenizer = HTMLTokenizer.new(@body) while tag = tokenizer.getTag(x) name = tag.attr_hash['name'] type = tag.attr_hash['type'] if name != nil then dict[type]=name ...

Help Help Help
Hi everybody there... I want to develop an application that uses GUIDE and will have two windows figures(figure1 and figure2). In figure1 the user will write down in a text box a string. Then figure1 closes, load figure2 and use that string. Finally, I would like to ask how can I use mouse click event. I would really appreciate any help of you. Thank you in advance.. NM Hi, see examples in the documentation : http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/exampleindex.html J�r�me On Mar 14, 12:38 pm, nm <nmihaili...@gmail.com> wrote: > Hi everybody ther...

Re: please please please PLEASE help!
Steve, I'm a little short on PostgreSQL experience, but gaining fast. I'm more o= f an Oracle nut. But I think you've pin pointed the problem, namely disk c= ontention. The easiest solution I can think of would be to stripe the volu= me group across all three drives thereby spreading the pain across the driv= es. One other item I'd look at is creating an index that specifically answ= ers the most frequent queries. Depending on your OS, you could mirror the = data across two of the drives at the OS level, which would also spread the = pain. Another solution, but...

please help... ...me learn C++ please please please :)
Hi Peoples, Can anyone give me any learning materials for learning C++. i.e. can you give me any docs or give me the link to any website that has info on programming in general or C++. (ok I know I could go to a library and read books on C++ but looking for something urgently.) YOUR HELP would be truly appreciated. please help Thanks. KK > Can anyone give me any learning materials for learning C++. This book is generally considered as one of the best book for learning C++ for people with some programming experience: http://www.acceleratedcpp.com/ > i.e. can you give me any d...

please help... ...me learn C++ please please please :)
Hi Peoples, Can anyone give me any learning materials for learning C++. i.e. can you give me any docs or give me the link to any website that has info on programming in general or C++. (ok I know I could go to a library and read books on C++ but looking for something urgently.) YOUR HELP would be truly appreciated. please help Thanks. KK "KK" <kumuthun@notvalidemailaddress.com> schreef in bericht news:3f8bd6d6_1@news.iprimus.com.au... > Can anyone give me any learning materials for learning C++. > > i.e. can you give me any docs or give me the link to any web...

please help... ...me learn C++ please please please :)
Hi Peoples, Can anyone give me any learning materials for learning C++. i.e. can you give me any docs or give me the link to any website that has info on programming in general or C++. (ok I know I could go to a library and read books on C++ but looking for something urgently.) YOUR HELP would be truly appreciated. please help Thanks. KK Hi! > Can anyone give me any learning materials for learning C++. You got the wrong NG. Here, we're speaking about multi-threadings. Post on comp.lang.c++.moderated or something. Regards, Loic. ...

encryption and decryption help
hi, all: I program a simple client on the embedded system. I use the des-cbc-md5 and des-cbc-crc as the prefered encryption and checksum algorithm. But I find the iv for md5 mode is just 8 bytes 0 and the iv for crc is the same as the key. So I am confused bucause the ivs for these two modes are all 0 according to RFC1510. Is the rfc has been changed or MIT kdc makes a change. Another problem is when I derive an initial key from user's password, I found MIT release just use the password instead of password plus principal name and realm according to the rfc. By tracing the cod...

PLEASE HELP Outlook problem PLEASE HELP
I have found many posting of the error occuring but none of them have answered my situation. System Specs: OS: WinXP Pro SP1 (can't install SP2 until updates for CAM software are created) Office: Office 2002 updated (Server running Exchange 2003 Stand.) AV: Norton Corp v8.0 updated Situation: Open Outlook/ create new mail / click the TO: button... system waitings and reports "The remote Procedure call Failed" and Outlook shuts down... I know that there is no virus on this computer many different AV products scans confirms this. Thanks. Audrius Audrius wrote: &...

AES encryption/decryption
Hi, here's the sample script, I run it with ActiveTcl 8.5.9.1, using packages aes 1.0.2 and md5 2.0.7: foreach pkg {aes md5} {package require $pkg} set data {This is a test message} puts data:$data\nlen:[ string length $data ] set key [ ::md5::md5 something ] set encrypted [ ::aes::aes -mode cbc -dir encrypt -key $key -hex $data ] puts encrypted:$encrypted set decrypted [ ::aes::aes -mode cbc -dir decrypt -key $key [ binary format H* $encrypted ] ] puts decrypted:$decrypted\nlen:[ string length $decrypted ] The script reports that before encryption the data lenght is 2...

[HELP HELP HELP SIMULINK] Please
How can i solve this in simulink??? sqrt((1/pi)*Integral([abs(F(jw;W)*S(jw))]^2,0,Inf,dw)). Or how can i calculate standard deviation of an error signal (e), for band limited references r(t;W)? Thanks ...

encryption/decryption help
Hi, I need to send secure data over an insecure network. To that end, I am needing to encrypt serialized data and then decrypt it. Is there a builtin way to do this in Python? MD5, SHA, etc encrypt, but I am not seeing a way to get back my data. Encryption is totally new to me, so any pointers of what to read up on would be appreciated. As a side note, I understand that I could use https, but this would involve changing things that I may not be at liberty to change -- though if this turns out to be the best solution, then I'll find a way to use it. Thanks "drs" <drs@re...

Help Help Help Help Help
please,help us . we have a seious problem, we are designing a radio controlled car that is guided by the PC, to send the data wireless between the PC and the Car and vice versa. we use 2 transmitter/reciever circuits from 2 seperate radio controlled car each running with a different frequency (27 MHz & 40 MHz)and modify the functionality of each to do the disered work. but on mounting a transmitter(40MHz) and reciever(27MHz) on the car, and attach another transmitter(27MHz) and reciever(40MHz) to the PC; we found that on sending signals from the car to the PC on the transmitter & rec...

telnet problem please help Urgent help please
Hi I have an HP9000 server running hpux 10.20. I have a problem where telnet keeps timing out. I am able to make a telnet connection for any time between 5 minutes and a few hours. After a while though they time out. The syslog report a timeout too. REgards Dinesh Chetty Hi > I have an HP9000 server running hpux 10.20. I have a problem where telnet > keeps timing out. I am able to make a telnet connection for any time between > 5 minutes and a few hours. After a while though they time out. The syslog > report a timeout too. Comes the timeout when you are active in the ses...

Please please help me!
Hi, I am using matlab version 6.0.0.88 Release12. I have a problem with the colorbar order. My function like this: x=randn(143,143)/1000; contourf(x),colorbar Ideally, I should have the scale for colorbar with index 10 to the power of -3. However, I could only have the scale from -3 to 3 without power index, unless I use "Edit plot" to change the "label property". Therefore, I wonder how can I permanently enable the "label property" instead of editing it everytime? Thank you. June June Sun wrote: > > > Hi, > I am using matlab version 6.0.0....

Please Please Help!!
WocBSe1QFHLRlEH2Ki+Gl8DIjHmu9wcQ Hi all, Dont know if this is the right place to submit questions. but i need help :( I need to convert this pl/sql function to java function so that i can use it my jsp page. FUNCTION countItem(adminUser IN STRING, m_menu IN NUMBER) RETURN NUMBER IS cno NUMBER := 0; CURSOR cAdminMenu(adminUser VARCHAR2 ) IS SELECT M.menuid,G.pageid,M.description,G.name,G.url FROM useraccess P, pages G, menues M, submenues T WHERE P.userid = adminUser AND T.menuid = M.menuid AND T.pageid = G.pageid AND P.pageid=G.pageid AND G.publicaccess = 'N&...

PLEASE HELP ME ! PLEASE
plese tell me about that program or help me or guide me wat should i do i am very woory about that Q1: Write a program using malloc function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format? Hint: User enters 3 then program allocates equal to 9 integer memories. Output:1 Enter a single digit number: 2 The multiplication table of 2 is: 1 2 ---------------- 1| 1 2 2| 2 4 Output:2 Enter a single digit number: 4 The multiplication table of 4 is: ...

PLEASE HELP ME ! PLEASE
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C Q1: Write a program using malloc function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format? Hint: User enters 3 then program allocates equal to 9 integer memories. Output:1 Enter a single digit number: 2 The multiplication table of 2 is: 1 2 ---------------- 1| 1 2 2| 2 4 Output:2 Enter a single digit number: 4 The multiplication table of 4 is: 1 2 3 4 ----------------...

Please Please Help!
I would like to fill out a form containing let's say 3 fields and then when i go to the next record. Now the next record would be blank except the last field wich would have the value of that same field from the last record. How can i do that? Some People from the group answered my question,they told me to use VBA but i don't know how! :( Can enyone help me? There is a topic about my problem on this web page http://support.microsoft.com/?id=210236. It says that i have to create a module so i create it with that code in STEP 3 but what then? In STEP 5 it says that i have to change the O...

Help, please, please
Who know that how to run matlab code directly to get a simulink model? I mean I have the matlab code, but I want the simulink model. What can I do? Many thanks!!!!!!!!! you can do: sim('model') The only way to do this is to use Mfile function block of simulink. which allows you to use matlab functions in siumlink regards nitin flo wrote: > > > you can do: sim('model') Sim('model')is used to call the simulink model in matlab code. But I dont have the model right now, I just have the matlab code describing the model. maggie wrote: > flo wrote: > >&...

Help...Please Help !
I have this code, It's working but very slowly, I want to reduce the number of loops but i don't know how! Thanks temps_lest2= []; all_files = dir('2A25*'); data=load('Jimenez_out_horaire.txt'); y= data(:,1); m= data(:,2); day= data(:,3); h= data(:,4); min= data(:,5); niv= data(:,6); val= data(:,7); lat= data(:,8); lon= data(:,9); valh= data(:,10); for J=1:length(all_files); donnees = load(all_files(J).name); annee = donnees(:,1); mois = donnees(:,2); jour = donnees(:,3); n=donnees(:,4); scan=donnees(:,5); heure = donnees(:,6); minute = donnees(:,7); seconde= donnees(:...

please please help
i have been posting about 3 days now with the same problem but noone has answered. please please some 1 tell me how to do the sum from l=0 to l=lmax of (c*x)^l/gamma(l+1) where x is between 0 and 1. and c=8 lmax=8000*x i need to do a graph from x=0 to x=1 Which code do you have till yet? Did you already had a look in ML-Help? Or do you want, that anybody else (than you) solve this problem? leo sivridis wrote: > > > i have been posting about 3 days now with the same problem but > noone > has answered. please please some 1 tell me how to do the sum from > l=0 > to l=lmax ...