PDA

View Full Version : Encryption helpers in ext?



dolittle
13 Aug 2007, 3:03 AM
Hi

Are there any plans to add encryption helpers to ext?
md5 (http://pajhome.org.uk/crypt/md5/), sha1, random key generator (http://www.fourmilab.ch/onetime/otpjs.html), base64 (http://rumkin.com/tools/compression/base64.php) encode/decode...?

It could be very handy. Perhaps some mathemetician could help?

Thanks

mystix
13 Aug 2007, 3:20 AM
if i was jack, i'd say "that would only add to code bloat".

maybe you could try throwing this up in the User Extensions forum.
this really shouldn't be in the base code.

dantheman
13 Aug 2007, 8:10 AM
There are variously-licensed implementations of the various hash algorithms
(md5, sha1 and sha2) available in JS.

Incorporating them into Ext would likely result in the licensing equivalent of
impedence-mismatch. :D I'd vote for a user extension, but I'd clear it with
the various authors, or re-implement myself.

--dan

dolittle
13 Aug 2007, 12:09 PM
I didn`t think of the license problem.

Having hash algorithms, as well as helper functions (key generator at least 64bit entropy, base64 encode/decode) as a user extension will be great as long as it`s lgpl or bsd.
I have attached several useful links in the opening post and will look for more.

Thanks

JeffHowden
13 Aug 2007, 1:36 PM
I'm currently working on a UX based on the work of Chris Veness of http://www.movable-type.co.uk/, which fortunately are all released under the LGPL.


Block TEA (Tiny Encryption Algorithm) (http://www.movable-type.co.uk/scripts/tea-block.html)
SHA-1 Cryptographic Hash Algorithm (http://www.movable-type.co.uk/scripts/sha1.html)
AES Advanced Encryption Standard (http://www.movable-type.co.uk/scripts/aes.html)


My work will also be released LGPL so everyone here can take advantage of it.

dantheman
13 Aug 2007, 1:44 PM
Sweet. Thanks Jeff.

sha1 would be a good building block for a ux CHAP login front-end.

--dan

JorisA
14 Aug 2007, 1:14 PM
I agree with mystix. Encryption could come in handy but only rarely for javascript apps. Furthermore these encryption functions are really easy to include without being part of the framework.

JeffHowden
15 Aug 2007, 10:19 AM
Agreed, they shouldn't be part of the core framework. However, having them available as a UX, properly namespaced, etc. would be extremely handy (and less problematic than using them in a non-namespaced fashion).

murrah
23 Jan 2009, 12:02 PM
I'm currently working on a UX based on the work of Chris Veness of http://www.movable-type.co.uk/, which fortunately are all released under the LGPL.

Hi Jeff,

Have you been able to complete this proposed UX?

Thanks,
Murray

J.C. Bize
23 Jan 2009, 12:04 PM
http://extjs.com/learn/Extension:Crypto

Cheers,
JC

murrah
23 Jan 2009, 12:25 PM
Ah ha! Thank you. I should have looked there myself!

Murray

J.C. Bize
23 Jan 2009, 12:37 PM
Sure thing, I just happened to have looked at it recently :)

Cheers,
JC