KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: MD5 Algorithm Implemented in 4D v11 SQL
PRODUCT: 4D | VERSION: 11 | PLATFORM: Mac & Win
Published On: November 12, 2008

Nowadays more and more businesses are conducted over the internet, and security for changing information is becoming a problem. This is the time when encryption algorithms come in handy. 4D developers also want to implement some of the well known encryption algorithms in their databases. Some of these algorithms are already written in JavaScript code. 4D v11 SQL release 2 offers tools for developers to implement JavaScript code in a 4D database. This Technical Note explains how easy it is to implement JavaScript code in 4D. In our examples we use an MD5 encryption algorithm. The hash function of this algorithm is written in JavaScript and we will implement this function in 4D. There are two examples, and they show the algorithm in a 4D Web area and a 4D form.

Download Complete Tech Note and Example: Windows | Mac

Commented by Jesse Pina on August 21, 2009 at 10:15 AM
While the Tech Note was written to demonstrate how to run the MD5 hash just within 4D standalone. With some minor modifications it can easily be made to run on 4D Server.