Skip to content

Commit 9727e8b

Browse files
author
Max Presman
committed
swap to gradle && minor function adjustment
1 parent b810c9c commit 9727e8b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/main/java/com/pubnub/api/Crypto.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Crypto(String cipherKey, String customInitializationVector) {
3939
this.cipherKey = cipherKey;
4040
}
4141

42-
public void InitCiphers() throws PubNubException {
42+
public void initCiphers() throws PubNubException {
4343
if (INIT)
4444
return;
4545
try {
@@ -71,7 +71,7 @@ private static PubNubError newCryptoError(int code, String message) {
7171

7272
public String encrypt(String input) throws PubNubException {
7373
try {
74-
InitCiphers();
74+
initCiphers();
7575
AlgorithmParameterSpec ivSpec = new IvParameterSpec(ivBytes);
7676
SecretKeySpec newKey = new SecretKeySpec(keyBytes, "AES");
7777
Cipher cipher = null;
@@ -105,7 +105,7 @@ public String encrypt(String input) throws PubNubException {
105105
*/
106106
public String decrypt(String cipher_text) throws PubNubException {
107107
try {
108-
InitCiphers();
108+
initCiphers();
109109
AlgorithmParameterSpec ivSpec = new IvParameterSpec(ivBytes);
110110
SecretKeySpec newKey = new SecretKeySpec(keyBytes, "AES");
111111
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");

0 commit comments

Comments
 (0)