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 32539 articles. 6 followers. Post

9 Replies
555 Views

Similar Articles

[PageSpeed] 36


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

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...

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...

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...

Re: encryption/decryption help
Did you look at pycrypto ? http://www.amk.ca/python/code/crypto.html Regards, Philippe -- *************************** Philippe C. Martin SnakeCard LLC www.snakecard.com *************************** For the problem described pycrypto is the best solution. Blowfish is simple and secure. The method you want to use is called "security by obscurity". But chances are very high that the "homebrewed" scheme you will invent will not stand any serious crytoatack. First of all: both sides (sender and receiver) have to agree on the session key used. And this is the most...

Encryption question
Hello We are in the process of evaluating the IBM encryption tool in db2 v8 on z/os. Does anyone know whether the editproc used in the IBM encryption tool inhibits the use of index while running selects? We have large tables - over a few 100 millions. Thanks Joey "Joey Jackson" <joeyjackson2005@yahoo.com> wrote in message news:1130255059.083143.239960@o13g2000cwo.googlegroups.com... > > Hello > > We are in the process of evaluating the IBM encryption tool in db2 v8 > on z/os. Does anyone know whether the editproc used in the IBM > ...

GPGME Help: Encrypt/Decrypt
I originally posted this question on the gnupg-users mailing list, but that list seems to have very little resources for development work. I'm hoping I could find some help here... So, I've been going through the samples, and I'm still sort of unclear about how to get the right public key read in so I can do an encryption. I'm looking at the following function: gpgme_error_t gpgme_op_encrypt (gpgme_ctx_t ctx, gpgme_key_t recp[], gpgme_encrypt_flags_t flags, gpgme_data_t plain, gpgme_data_t cipher) The question is, how do I build these recipients? I have a bunch...

binary aes encrypt/decrypt
Since the tcl tcllib aes package is too slow for mass encryption/decryption I am looking for a binary library that can easily be integrated to Tcl. If there is someone that already integrated such library it would be even better. My need is that the key will be passed as parameter and not stored in a file (for security reasons). Other than that what we have in the tcllib API is more than enough. Thanks Hi, Maybe you can have a look at Cruptkit: http://wiki.tcl.tk/13191 -- David Zolli - Kroc yahalome@gmail.com wrote: > Since the tcl tcllib aes package is too slow for mass &...

Please recomend textbook with AES encryption.
Hi, there: I am looking for textbook with detailed information on AES encryption and decryption. I have Bernard Sklar's Digital Communications, but it contains DES only. Thanks in advance. "Frank" <frank@yahoo.com.cn> writes: |> I am looking for textbook with detailed information on AES encryption |> and decryption. I have Bernard Sklar's Digital Communications, but it |> contains DES only. For a detailed textbook about AES by its designers, have a look at Joan Daemen, Vincent Rijmen: The Design of Rijndael: AES - The Advanced Encryption Standard S...

Re: encryption/decryption help #2
>>MD5 and SHA are by their very nature one way encryption. You cannot decrypt them. Indeed, the point of these algorithms is to sign data (like a fingerprint). In order to encrypt you may go for Symmetrical algos (AES, 3DES ....with those, the key must be known on both sides of the pipe) or Asymmetrical (RSA ... - where you get a private key on one side and a public key on the other - good but slow). Often you find hybrid methods: you start your session with a public/private style method just to exchange a symmetrical key that you'll use for the rest of the session. Regards, Ph...

AES encrypt/decrypt Key Parsing
I am trying to understand how MySQL converts the "key_str" (AES password) argument in functions "AES_ENCRYPT(str,key_str)" or "AES_DECRYPT(crypt_str,key_str)" if the length of the "key_str" characters is > 16 characters. I am trying to write parallel Java AES functions that work exactly as the MySQL AES functions. >From my tests, I've concluded that MySQL first converts the "key_str" to bytes and then uses those bytes for AES ciphering. If the size of the converted bytes is < 16 bytes (32 hex chars or 128 bits), the converted by...

Please recomend textbook with AES encryption.
Hi, there: I am looking for textbook with detailed information on AES encryption and decryption. I have Bernard Sklar's Digital Communications, but it contains DES only. Thanks in advance. Not sure about textbooks, but the website... http://csrc.nist.gov/CryptoToolkit/aes/rijndael/ Has detailed information. Hello, to go a step further from here. In your sorce the algorithm as such as desribed very well. And there are lots of existing 32bit algorihms, but it is very hard to find a 16 bit-algorithm, that can be easily deployed and used for the msp430. I want to AES- encrypt mes...

Please recomend textbook with AES encryption.
Hi, there: I am looking for textbook with detailed information on AES encryption and decryption. I have Bernard Sklar's Digital Communications, but it contains DES only. Thanks in advance. On Tue, 28 Mar 2006 14:49:40 +0800, "Frank" <frank@yahoo.com.cn> wrote: >Hi, there: > >I am looking for textbook with detailed information on AES encryption >and decryption. I have Bernard Sklar's Digital Communications, but it >contains DES only. AES was selected from a number of candidates in a well publicised trial. As a result, there a...

Help.. Encrypt / Decrypt in RB from VB
Hi, I'm trying to share and some data between my VB application and my RB application. I've got this VB and translated it to RB But there seems to be a problem, I'm not sure what it is. Within VB and RB the code seems to work OK. Can someone have a look?? Any ideas would greatly be appreciated. //RB Code strPwd As String = "dsfdsf7632hiuywqndresawiayewdsa87dusahf" Sub Encrypt(pstrOutputFile As String, Optional pstrInputString As String) Dim i As Integer, c As Integer Dim strBuff As String For i = 1 To Len(pstrinputString)+1 c = Asc(Mid(...

Need help of providers for RC2 encrypt/decrypt
Hi, I am trying to encrypt/decrypt using SunJCE Provider, but not able to use RC2 algorithm. Can any one please confirm if SUN JCE provider does not implement RC2 ? Can you suggest any other provider if sun does not? Thanks Austin I am using JDK1.6, and I am able to use RC2 algorithm. Subhash. http://wizcrypt.wiztools.org/ On Feb 7, 6:13 pm, austin_m...@yahoo.com wrote: > Hi, > I am trying to encrypt/decrypt using SunJCE Provider, but not able to > use RC2 algorithm. > Can any one please confirm if SUN JCE provider does not implement > RC2 ? > Can you suggest any other...

decryption failed bad key
Hi all, I am having problems figuring out why I cannot decrypt a certain file encrypted using PGP. I am trying to decrypt it using GPG v 1.2.2. When I try and decrypt the file, I get the following error messages: gpg: TWOFISH encrypted data gpg: decryption failed: bad key The file has been encrypted using my public key by someone using PGP 7.0. I am able to decrypt the file using PGP 8.0 but not GPG. Why? I would really appreciate any help/advice available. Thanks! Pumba wrote: > Hi all, > > I am having problems figuring out why I cannot decrypt a ce...

Tcl code encryption best practice -- Please help
Hi, I have a tcl script that I need to ship to my customer encrypted as it's some propitiatory contents that I don't need him to see. What are the best practice in encrypting Tcl script? Thanks, Ahmad Στις 27/7/2010 22:37, ο/η Ahmad έγραψε: > Hi, > > I have a tcl script that I need to ship to my customer encrypted as > it's some propitiatory contents that I don't need him to see. > > What are the best practice in encrypting Tcl script? > > Thanks, > Ahmad ActiveState's Tcl Development Kit (TDK)? George Ahmad wrote: &...

Can not open encrypted files (EFS) (Please help) reposted
Hi there, Please find My problem described here: http://groups.google.com/group/comp.os.ms-windows.misc/browse_thread/thread/d417f1c497ecd273 At final, I find that I have to replace my Windows Xp's account Certificate with an old one: I opened 'certmgr.msc' in MMC. In the "Personal\Certificates" and "Trusted People\Certificates" I have TWO Certificates named 'ABC'. One of them have the correct thumbprint (I am very happy that it exists!), and another have a new thumbprint and as I see the 'Valid Date' started from the what date I got the pro...

Please god help me out...cannot open encrypted pdf's.....
I while ago set "encrypt" to a folder with many of my .pdf files. I cannot remember if there were assigned a password to it, but i don't think so. Now, when i try to open the files, they won't open anymore. "Cannot open" is the message.. I try to remove the encryption from the mainfolder "preferences", and it seems succeded, but the subfolders/files still are encrypted and won't open. I get the message "no access" when I try to remove the "encryption" mark from the files/folders here. What can help me out without scanning eve...

please help with decrypting g++'s error-messages
I'm a newbie in the world of c++, and I am used to learn a programming language simply by programming. Unfortunately I where unable to find any useful helpfile for this language, in which such basic things as "class", "operator ::", or even my compiler's error-messages would get explained in a quick-reference kind of way (as turbo pascal did with the pascal-language). Therefore I was forced to read some books and tutorials. However, I'm too lazy to do any exercises, and therefore I'm stuck in the error-message jungle without a clue of what the compiler does ...

Can not open encrypted files (EFS) , please help (uregnt)
Hi there, I need an ugent help on this problem, please let me know if you can help me: I've encrypted some files in my Windows XP system by Windows encryption feature for NTFS (the EFS file system). I am realy do not know how, but after a reboot, I am unable to open any encrypted file for user 'ABC'. I get 'Access Deined' message when try to open them. As I research for this problem, I guess that my 'ABC' account's Certificate is damaged. I say again I realy do not know how this happen! by a virus? is this possible? however, when I right-click on ...

Can not open encrypted files (EFS) (Please help) reposted
Hi there, Please find My problem described here: http://groups.google.com/group/comp.os.ms-windows.misc/browse_thread/thread/d417f1c497ecd273 At final, I find that I have to replace my Windows Xp's account Certificate with an old one: I opened 'certmgr.msc' in MMC. In the "Personal\Certificates" and "Trusted People\Certificates" I have TWO Certificates named 'ABC'. One of them have the correct thumbprint (I am very happy that it exists!), and another have a new thumbprint and as I see the 'Valid Date' started from the what date I got the pro...

AES encrypt/decrypt character encoding problem using Java / JDBC
I'm having problems reading a column that is encrypted/decrypted with Java and MySQL's AES functions. Here's what I do... CREATE TABLE `bin` ( `bytes` mediumblob, `bytes2` mediumblob ) ENGINE=MyISAM DEFAULT Then, using Java, I import a 16KB PDF file's bytes into column "bytes". Then, I set column "bytes2" to be an AES-encrypted version of "bytes". Here's the problem...When I try to write "bytes2" to a file (after decrypting), the file won't open, and I believe the character encoding is messed up in the file. However, &qu...

GPG: Mistyped password twice the same way when encrypting
Using symmetric encryption with GPG, I managed to mistype a password twice the same way while encrypting a file. (And then deleted the original before trying to decrypt the new file, naturally.) Let's say I tried: Betty is a pretty girl. Are there any utilities out there that can come up with a list of possible passwords based on slight variations of that phrase? I've written a program that tries to do that, but hasn't gotten the correct password yet. Thanks! John -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Are there any utilities out there that c...

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...