cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

CRC-32 generator using ACL

aleslie
1-Newbie

CRC-32 generator using ACL

Does anyone know if it is possible to code the CRC-32 algorithm using ACL ?

Or is it best carried out using Java and then called from within the ACL.

Regards,

Andy

2 REPLIES 2

Hi Andy-



ACL is a fairly complete programming language, so I'm sure you could
code CRC-32 in it if you wanted to. OTOH, it's probably easier to just
tap into the java.util.zip package and use their implementation. If you
want to write most of your code in ACL and just invoke the java code for
this, you can bridge to java from ACL using the java_constructor(),
java_instance(), etc. functions in ACL.



--Clay


If you want to be clever about things, I found this neat SHA1 implementation
in Javascript J It's not CRC-32 but SHA1 is probably safer in most
applications anyway, due to reduced likelihood of hash collision.



Top Tags