Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

This is a Java wrapper for native CRC64 variant with "Jones" coefficients and init value of 0.

License

NotificationsYou must be signed in to change notification settings

Karm/CRC64Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building

mvn install

Usage in your Java project

Add project repository and dependencies to your pom.xml. Use<artifactId>crc64java-mac-x86_64</artifactId> for Mac and<artifactId>crc64java-windows-x86_64</artifactId> for Windows.

<dependencies>    <dependency>        <groupId>biz.karms.crc64java</groupId>        <artifactId>crc64java-java</artifactId>        <version>1.0.9</version>    </dependency>    <dependency>        <groupId>biz.karms.crc64java</groupId>        <artifactId>crc64java-linux-x86_64</artifactId>        <version>1.0.9</version>    </dependency></dependencies><repositories>    <repository>        <snapshots>            <enabled>false</enabled>        </snapshots>        <id>bintray-karm-maven</id>        <name>bintray</name>        <url>https://dl.bintray.com/karm/toys</url>    </repository></repositories>

Example

finalCRC64crc64 =CRC64.getInstance();finalBigIntegerhash =crc64.crc64BigInteger("SOME DATA TO HASH".getBytes());System.out.println(hash.toString());finalStringhexHash =crc64.crc64Hex("SOME DATA TO HASH".getBytes());System.out.println(hexHash);

Output:

114223527962403866999e84595997191a8b

Acknowledgments

  • CRC64 algorithm native implementation, Copyright (c) 2012, Salvatore Sanfilippo , All rights reserved.
  • CRC64Java JNI wrapper, based off Wildfly-OpenSSL approach to packaging shared objects, although projects are not related in any way. GNU GLP v3 license.
  • SeeCOPYING.md for details

About

This is a Java wrapper for native CRC64 variant with "Jones" coefficients and init value of 0.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp