Skip to main content
1-Visitor
September 27, 2010
Question

CRC-32 generator using ACL

  • September 27, 2010
  • 2 replies
  • 734 views

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

    18-Opal
    September 27, 2010
    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


    16-Pearl
    September 30, 2010
    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.