Re: Generate Digest MD5 - Max Input File Size?

2016-10-24 Thread Keisuke Miyako
Hash.4dbase is a v15 sample database (plugin preinstalled), v11/Hash.4dbase is a v11 sample database (plugin preinstalled). the v15 plugin can be used in all versions above v14, including Mac 64 bits. the v11 plugin can be used in all versions above v11, excluding Mac 64 bits. you can go inside

Re: Generate Digest MD5 - Max Input File Size?

2016-10-21 Thread David Belote
Wow! This thread has yielded a wealth of information about hashes & checksums and the issues surrounding generating and using them. David Adams’s Hash Tool Component PDF finally gave me a good explanation about what a Hash is and provides a good resource. I’m still a little bit foggy about

Re: Generate Digest MD5 - Max Input File Size?

2016-10-20 Thread Keisuke Miyako
the "Generate digest" function is mainly used for hashing passwords or relatively small documents. http://livedoc.4d.com/4D-Language-Reference-15-R5/Tools/Generate-digest.301-2937745.en.html still, the code $error:=_o_AP Get file MD5 digest($path;$hash) works in v15 (32 bits)

Re: Generate Digest MD5 - Max Input File Size?

2016-10-20 Thread Cannon Smith
Hi David, I created a feature request a few years ago (http://forums.4d.fr/Post/EN/13706008/1/13706009#13706009) because I was in the same situation you are and turned to php as well. Only I was doing a SHA1 instead of MD5. Anyway, the thing I was running into wasn’t a file size limit but a

Re: Generate Digest MD5 - Max Input File Size?

2016-10-19 Thread David Belote
The code that was failing on the 687.6 MB file with an out of memory error follows. In order to use the Generate digest command on a file, you have to convert the file to a BLOB first. If I would have written it, I would have just read in the file directly and computing the checksum as it

RE: Generate Digest MD5 - Max Input File Size?

2016-10-19 Thread Timothy Penner
The docs say that Generate Digest accepts either a BLOB or a TEXT variable: http://livedoc.4d.com/4Dv15-R5/help/Command/en/page1147.html The docs also say that both Blobs and Text variables are limited to 2 GB - here are the relevant excerpts: BLOB

Re: Generate Digest MD5 - Max Input File Size?

2016-10-19 Thread Charlie Vass
Depends on which version of 4D you’re talking about. There are now 64 bit versions for Mac and Win. Charlie > On Oct 19, 2016, at 10:18 AM, Jeffrey Kain wrote: > > 4D is a 32-bit application, so it's probably somewhere shy of 2GB since you > need to load the document

Re: Generate Digest MD5 - Max Input File Size?

2016-10-19 Thread Jeffrey Kain
4D is a 32-bit application, so it's probably somewhere shy of 2GB since you need to load the document into a blob in memory. How big are your files? > On Oct 19, 2016, at 10:08 AM, David Belote wrote: > > What is the maximum file size that the “Generate digest”