Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
release version 0.0.2
Browse files Browse the repository at this point in the history
-> bug fixes
  • Loading branch information
Ralf Wondratschek committed Jul 28, 2014
1 parent 43229a7 commit 0520a13
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -10,15 +10,15 @@ Download [the latest JAR][1] or grab via Gradle or Maven:

```groovy
dependencies {
compile 'net.vrallev.sqrl:sqrl-protocol:0.0.1'
compile 'net.vrallev.sqrl:sqrl-protocol:0.0.2'
}
```

```xml
<dependency>
<groupId>net.vrallev.sqrl</groupId>
<artifactId>sqrl-protocol</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</dependency>
```

Expand Down Expand Up @@ -54,6 +54,7 @@ SqrlClientBody bodyParsed = SqrlProtocol.instance()
SqrlServerBody bodyOriginal = SqrlProtocol.instance()
.answerClient(body, ServerParameter.SQRL_ACCOUNT_CREATION_ALLOWED)
.withServerFriendlyName("Unit Test")
.withStoredKeys(user.getServerUnlockKey(), user.getVerifyUnlockKey())
.create()
.asSqrlServerBody();

Expand Down
2 changes: 1 addition & 1 deletion sqrl-protocol/gradle.properties
@@ -1,4 +1,4 @@
VERSION_NAME=0.0.1-SNAPSHOT
VERSION_NAME=0.0.2
VERSION_CODE=1
GROUP=net.vrallev.sqrl

Expand Down
3 changes: 1 addition & 2 deletions sqrl-protocol/src/main/java/android/util/changed/Base64.java
Expand Up @@ -59,11 +59,10 @@ public class Base64 {
public static final int URL_SAFE = 8;

/**
* Flag to pass to {@link Base64OutputStream} to indicate that it
* Flag to pass to Base64OutputStream to indicate that it
* should not close the output stream it is wrapping when it
* itself is closed.
*/
@SuppressWarnings("JavadocReference")
public static final int NO_CLOSE = 16;

// --------------------------------------------------------
Expand Down
Expand Up @@ -94,7 +94,7 @@ private SqrlClientBody parseInternal(boolean checkSignatures) throws SqrlExcepti
String clientParameterDecoded = new String(SqrlRequestUtil.decodeBase64(mParameters.get("client")), SqrlRequestUtil.ASCII);
ClientParameter clientParameter = new ClientParameterParser().parse(clientParameterDecoded);
ServerParameter serverParameter = new ServerParameterParser().parse(mParameters.get("server"), true);
byte[] concatenation = (clientParameter.getParameterEncoded() + serverParameter.getParameterEncoded()).getBytes(SqrlRequestUtil.ASCII);
byte[] concatenation = (mParameters.get("client") + mParameters.get("server")).getBytes(SqrlRequestUtil.ASCII);

byte[] ids = SqrlRequestUtil.decodeBase64(mParameters.get("ids"));

Expand Down
Expand Up @@ -41,7 +41,7 @@
public class SqrlCipherTool {

private static final String MAC_ALGO = "HmacSHA256";
private static final String DEFAULT_HASH_ALGORITHM = "SHA-512";
private static final String DEFAULT_HASH_ALGORITHM = "SHA-256";
private static final Charset UTF_8 = Charset.forName("UTF-8");

private final SecureRandom mRandom;
Expand Down

0 comments on commit 0520a13

Please sign in to comment.