Skip to content

Commit a2e84c7

Browse files
author
Muralidharan Ramasamy
committed
2.04 version
1 parent 7766ce2 commit a2e84c7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Once plugin receives this token, it will unencrypt using the secret key generate
3636

3737
Firebase httpv1 version requires separate intent filter, please use intent filter for mainactivity like below
3838

39-
'''XML
39+
```XML
4040
<activity
4141
android:name=".MainActivity"
4242
android:exported="true">
@@ -49,12 +49,12 @@ Firebase httpv1 version requires separate intent filter, please use intent filte
4949
<category android:name="android.intent.category.DEFAULT" />
5050
</intent-filter>
5151
</activity>
52-
'''
52+
```
5353
Following is optional, Google requires encryption needs to be AES/GCM/NoPadding, Following is updated encryption logic using AES/GCM/NoPadding, at present plugin works for both old encryption method (AES/CBC/PKCS5Padding) as well as for new method AES/GCM/NoPadding.
5454

5555
Following is example code encryption using AES/GCM/NoPadding to connect to PNFPB plugin REST API
5656

57-
'''JAVA
57+
```JAVA
5858
/*** NEW method of encrypting using AES GCM Nopadding - 2024 */
5959
SecureRandom secureRandom = new SecureRandom();
6060
byte[] iv = new byte[16]; // GCM mode typically uses a 12-byte IV
@@ -81,8 +81,7 @@ Following is example code encryption using AES/GCM/NoPadding to connect to PNFPB
8181
POST_PARAMS = finalresultstring + ":" + ivstring + ":" + byteContent + ":" + byteContent;
8282
postRequest(POST_PARAMS);
8383
WebSettings settings = mywebView.getSettings();
84-
'''
85-
84+
```
8685

8786
# Video tutorial showing how to configure Firebase for this plugin<br />
8887

0 commit comments

Comments
 (0)