This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:aes_crypt/aes_crypt.dart'; | |
/** | |
* @Algorithm: first encryption of context (file) ==> | |
* decrypt based on extension ==> | |
*/ | |
var __file_dir; | |
var __de_file_dir; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package src.encryption; | |
/* | |
* @string encryption sample | |
*/ | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Arrays; | |
import java.util.Base64; | |
import java.util.Scanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package src.decryption; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.security.spec.KeySpec; | |
import java.util.Scanner; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.IvParameterSpec; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoder: | |
import base64 | |
_userOriginalBinaryfile = input("Please Enter the Location of the file design to encrypt: ") | |
with open(_userOriginalBinaryfile, "rb") as _inputFile: | |
_input_file_data = _inputFile.read() | |
_encodeData = base64.b64encode(_input_file_data) | |
_encodeMessage = _encodeData.decode("utf-8") | |
print(_encodeMessage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// My intention is to decodeencrypted image hashes | |
// and export back to File(image.extension) | |
echo "Decrypt {string} or {file}? [input: \"str\" || \"bin\", type \"exit()\" for quit the programme]"; | |
$__userInputOption = rtrim(fgets(STDIN)); | |
if ($__userInputOption == "str"){ | |
echo "Please enter {string} you want to decode: \n"; | |
$_input = rtrim(fgets(STDIN)); | |
$_encodedString = base64_decode($_input); | |
echo "Encoded String: ".$_input."\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//encode: | |
Future<void> _encryptionBinary() async { | |
int x = 0; | |
int y = 100; | |
print("Please Enter {content} you want to encrypt: "); | |
String _requestUserFileInput = IO.stdin.readLineSync(); | |
List _binary = await new IO.File(_requestUserFileInput).readAsBytesSync(); | |
String _encodedFile = base64.encode(_binary); | |
print("Encoded Binary: $_encodedFile".substring(x, y)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I use Java , in kotlin is almost the same I guess | |
... | |
//Global | |
private Firebase firebase; | |
//something | |
... | |
// in onCreate(); | |
firebase = Firebase.getInstance(); | |
... | |
FirebaseUser firebaseUser = firebase.getCurrentUser(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guys I have Some issue: | |
E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: my.kylogger.johnmelodyme.iot.embedded.serialcommunicationuart, PID: 11607 | |
java.lang.IllegalStateException: Could not execute method for android:onClick | |
My Source : | |
public void OpenSerial(View view){ | |
String baudtext = Baud.getSelectedItem().toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.johnmelodyme.bloodsugarcontrolv1; | |
/* | |
*このページは、読み込みに伴うスプラッシュです。 | |
* これは John Melody Melissa によってコーディングされています。 | |
* このライセンスは、商標、サービスマーク、 | |
* または貢献者のロゴ(準拠するために必要な場合を除く) | |
* セクション3.4の通知要件)。 | |
**/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/use/bin/env python3 | |
import tkinter | |
from tkinter import * | |
from tkinter.filedialog import asksaveasfilename | |
from PIL import Image, ImageTk, ImageGrab | |
window = tkinter.Tk() | |
window.geometry("520x800") | |
window.title("STARLABS BIOSCIENCE SDN BHD") |