Skip to content

Navigation Menu

Sign in
Appearance settings

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

Appearance settings

Commit ce759bb

Browse filesBrowse files
author
Devendra
committed
fixed indents
1 parent c280288 commit ce759bb
Copy full SHA for ce759bb

File tree

Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: java/srcCrypto/com/pubnub/api/PubnubCryptoCore.java
+9-9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.