AES Symmetric Encryption Using Javascript and ColdFusion

This article is just a small demo on how to use the same AES symmetric encryption on the client-side (javascript) and the server-side (ColdFusion).

The goal is to generate a key on the server-side (for example each time a user logs in, when the session is created, a special key is generated and stored in the session), this key is then sent to the browser to encrypt form fields on the client-side which can then be sent encrypted to the server, where they can be decrypted again with the key from the session, to obtain the original values.

Alcoholism Effects on Body: The Dangerous and Potentially Life Threatening Physical Effects of Alcoholism
Excessive drinking is one of the leading causes of liver cancer, because it leads to cirrhosis, from which liver cancer develops. There are a number of diseases attributed directly to alcoholism that can not only destroy your body, but mind as well.

For completeness, I will show both how to encrypt and decrypt on the serverside first, using ColdFusion, as well as how to encrypt and decrypt on the client-side, using javascript.

For the generation of the key, I decided to use the underlying jvm, because the native ColdFusion generateKey method doesn’t allow for the generation of an InitializationVector, which leads to weaker security.

Graduate School Marketing Personal Statement Example It is always a well-planned approach for a student to write a marketing program personal statement using our online example. Marketing personal statement sample offered by our team will result into the best guidance for every student in many ways.
More... Vishal takes a stand against piracy Suriya’s 24 is already available on the grey market and I know from where it is being done. If they don’t take action, I will outline my course of action at a press conference.
More... Meet the cast of Agatha Christie's And Then There Were None In recent years he's starred in the sci-fi epic Jupiter Ascending as well as the biblical film Noah , alongside Russell Crowe. Known as "The Hanging Judge", this ex- man of the law personally ensured that the gallows were never short of necks.
More... Melamine Paintable Tiles Flat-faced tiles are available as accents or can be used as trim around ceiling fixtures or edges. Five special surface designs to mix and match, allow for dozens of intriguing ceiling designs.
More... ANDRES SARDA FW15/16 | Madrid Fashion Week | HDFASHION International TV channel HDFASHION is special and taking one of the leader positions in Europe, original home of fashion. Professional team works 24/7 for you to know first about all exclusive news in fashion world.
More...

More news