Skip to content

Commit

Permalink
Crypto default 256 bit length like all other libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworiordan authored and paddybyers committed Jul 28, 2017
1 parent 3bfdf99 commit 63f0251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/main/java/io/ably/lib/util/Crypto.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Utility classes and interfaces for message payload encryption.
*
* This class supports AES/CBC/PKCS5 with a default key length of 128 bits
* This class supports AES/CBC/PKCS5 with a default key length of 256 bits
* but supporting other key lengths. Other algorithms and chaining modes are
* not supported directly, but supportable by extending/implementing the base
* classes and interfaces here.
Expand All @@ -37,7 +37,7 @@
public class Crypto {

public static final String DEFAULT_ALGORITHM = "aes";
public static final int DEFAULT_KEYLENGTH = 128; // bits
public static final int DEFAULT_KEYLENGTH = 256; // bits
public static final int DEFAULT_BLOCKLENGTH = 16; // bytes

/**
Expand Down

0 comments on commit 63f0251

Please sign in to comment.