GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Solve samples warnings · simbiose/Encryption@42d1789

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Examples
    • Android/app/src/main
      • AndroidManifest.xml
      • java/se/simbio/encryption
        • MainActivity.java
    • Java/src/se/simbio/encryption
      • Examples.java
      • Main.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Examples/Android/app/src/main/AndroidManifest.xml‎

Copy file name to clipboardExpand all lines: Examples/Android/app/src/main/AndroidManifest.xml
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest
33
package="se.simbio.encryption"
4-
xmlns:android="http://schemas.android.com/apk/res/android">
4+
xmlns:android="http://schemas.android.com/apk/res/android"
5+
xmlns:tools="http://schemas.android.com/tools">
56

67
<application
8+
android:allowBackup="true"
79
android:icon="@mipmap/ic_launcher"
810
android:label="@string/app_name"
9-
android:theme="@android:style/Theme.Light">
11+
android:theme="@android:style/Theme.Light"
12+
tools:ignore="GoogleAppIndexingWarning">
1013
<activity
1114
android:name=".MainActivity"
1215
android:label="@string/app_name">
Collapse file

‎Examples/Android/app/src/main/java/se/simbio/encryption/MainActivity.java‎

Copy file name to clipboardExpand all lines: Examples/Android/app/src/main/java/se/simbio/encryption/MainActivity.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* each click listener is an example of Encryption
1616
*/
17-
public class MainActivity extends Activity {
17+
public final class MainActivity extends Activity {
1818

1919
private static final String TAG = "Encryption";
2020

@@ -133,7 +133,7 @@ public void onError(Exception e) {
133133
/**
134134
* By default Encryption do not log, but you can intercept logs
135135
*/
136-
public void interceptLog() {
136+
private void interceptLog() {
137137
// you can intercept logs and sed direct to System.out with:
138138
Logger.enableDefaultLog();
139139

Collapse file

‎Examples/Java/src/se/simbio/encryption/Examples.java‎

Copy file name to clipboardExpand all lines: Examples/Java/src/se/simbio/encryption/Examples.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
/**
88
* each method is an example of Encryption
99
*/
10-
public class Examples {
10+
final class Examples {
1111

1212
/**
1313
* The Encryption library is easy to use
1414
*/
15-
public void normalUsage() {
15+
void normalUsage() {
1616
System.out.println("---- Normal Usage ---------------------------------------------------");
1717
// it is how to get the Encryption instance. You should use your own key your own salt and your own byte array
1818
Encryption encryption = Encryption.getDefault("SomeKey", "SomeSalt", new byte[16]);
@@ -35,7 +35,7 @@ public void normalUsage() {
3535
System.out.println("And finally this is our decrypted text: " + decrypted);
3636
}
3737

38-
public void customizedUsage() {
38+
void customizedUsage() {
3939
System.out.println("---- Customized Usage -----------------------------------------------");
4040
// if you want to change Encryption behavior, maybe to reduce the Iteration Count to get a
4141
// better performance or also change the Algorithm to a customizable one. You can do this
@@ -73,7 +73,7 @@ public void customizedUsage() {
7373
System.out.println("Our encryption instance, can't be null: " + encryption);
7474
}
7575

76-
public void asyncUsage() {
76+
void asyncUsage() {
7777
System.out.println("---- Async Usage ----------------------------------------------------");
7878
// the encryption algorithm can take some time and if you cannot lock the thread and wait
7979
// maybe use an async approach is a good idea, so you can do this like below:
@@ -103,7 +103,7 @@ public void onError(Exception e) {
103103
/**
104104
* By default Encryption do not log, but you can intercept logs
105105
*/
106-
public void interceptLog() {
106+
void interceptLog() {
107107
// you can intercept logs and sed direct to System.out with:
108108
Logger.enableDefaultLog();
109109

Collapse file

‎Examples/Java/src/se/simbio/encryption/Main.java‎

Copy file name to clipboardExpand all lines: Examples/Java/src/se/simbio/encryption/Main.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package se.simbio.encryption;
22

3-
public class Main {
3+
final class Main {
44

55
public static void main(String[] args) {
66
Examples examples = new Examples();

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.