Sitelet https://github.com/FlyingAndroid/java/commit/ce759bbb6b13acaeff07c5a28459ad8dd59bde1b
Skip to content

Commit ce759bb

Browse files
author
Devendra
committed
fixed indents
1 parent c280288 commit ce759bb

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎java/srcCrypto/com/pubnub/api/PubnubCryptoCore.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ public String encrypt(String input) throws PubnubException {
9999
* @throws PubnubException
100100
*/
101101
public String decrypt(String cipher_text) throws PubnubException {
102-
try {
103-
byte[] cipher = Base64Encoder.decode(cipher_text);
104-
InputStream st = new ByteArrayInputStream(cipher);
105-
ByteArrayOutputStream ou = new ByteArrayOutputStream();
106-
CBCEncryptOrDecrypt(st, ou, false);
107-
return new String(ou.toByteArray());
108-
} catch (IllegalArgumentException e) {
109-
throw new PubnubException(newCryptoError(3, e.toString()));
110-
}
102+
try {
103+
byte[] cipher = Base64Encoder.decode(cipher_text);
104+
InputStream st = new ByteArrayInputStream(cipher);
105+
ByteArrayOutputStream ou = new ByteArrayOutputStream();
106+
CBCEncryptOrDecrypt(st, ou, false);
107+
return new String(ou.toByteArray());
108+
} catch (IllegalArgumentException e) {
109+
throw new PubnubException(newCryptoError(3, e.toString()));
110+
}
111111
}
112112

113113
public void CBCEncryptOrDecrypt(InputStream in, OutputStream out,

0 commit comments

Comments
 (0)