Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tasks.withType(Javadoc) { options.encoding = "UTF-8" }
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }

group = 'com.github.myibu'
archivesBaseName = "algorigthm-java"
archivesBaseName = "algorithm-java"
version = "0.0.1"

repositories {
Expand All @@ -50,11 +50,11 @@ uploadArchives {
}

pom.project {
name 'algorigthm-java'
name 'algorithm-java'
packaging 'jar'
// optionally artifactId can be defined here
description 'General algorighm implements in java'
url 'https://github.com/myibu/algorigthm-java'
url 'https://github.com/myibu/algorithm-java'

scm {
connection 'scm:svn:http://foo.googlecode.com/svn/trunk/'
Expand Down
22 changes: 19 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Algorithm-Java
General algorighm implements in java

## IDCardChecker
## Implements
### IDCardChecker
Reference to: [ChineseIdCardValidate.pdf](./docs/ChineseIdCardValidate.pdf)

## SipHash
### SipHash
Reference to: [siphash.pdf](./docs/siphash.pdf)

## SHA256
### SHA256
Reference to: [SHA256.pdf](./docs/SHA256.pdf)

## Installation
```bash
<dependency>
<groupId>com.github.myibu</groupId>
<artifactId>algorithm-java</artifactId>
<version>0.0.1</version>
</dependency>
```

## Examples
```java
SHA256 sha256 = new SHA256();
byte[] bs = sha256.encode("abc".getBytes("utf-8"));
```