Skip to content

Instantly share code, notes, and snippets.

View Jabriko's full-sized avatar

Jabriko Banjarnegara Jabriko

  • Banjarnegara
View GitHub Profile
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package passwordfieldtomd5;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
@Jabriko
Jabriko / JPasswordMD5Example2.java
Created January 16, 2020 08:34
Hasil modifikasi JPasswordField ke MD5.. Menjadi JPasswordField ke MD5 + Salt.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package passwordmd5withsalt;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
<?php
//Initialize the session
session_start();
//Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
header("location: ../index.php");
exit();
}
<?php
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "root", "", "smallstepmart");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
package id.indrasudirman.tablayoutwithfab;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.design.widget.FloatingActionButton;
package id.indrasudirman.tablayoutwithfab;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog;
import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
package id.indrasudirman.tablayoutwithfab;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
package id.indrasudirman.bahanujicoba;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.EditText;
package id.indrasudirman.bahanujicoba;
/**
* Created by Jabrikos on 3/16/2018.
*/
public class Rot13 {
public static String rot13 (String value) {
package id.indrasudirman.bahasainggris.activities.simplepast;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;