Convert script sebuah function dari java ke php

 

Dicari worker yang memiliki kemampuan java & php untuk mengubah sebuah fungsi yang ada di java ke dalam bahasa programan php

Task:

1. Jalankan function dibawah ini ke https://www.tutorialspoint.com/compile_java8_online.php atau sejenisnya agar bs di cocokan/bandingkan result versi java & php 

2. Ubah script java dibawah ini kedalam bahasa programan PHP

public String enkripsi(String str){
		char [] arrText = {' ','a','A','b','B','c','C','d','D','e','E','f','F','g','G','h','H','i','I','j','J','k','K','l','L','m','M','n','N','o','O','p','P','q','Q','r','R','s','S','t','T','u','U','v','V','w','W','x','X','y','Y','z','Z',
				   '`','1','2','3','4','5','6','7','8','9','0','~','!','@','$','^','*','(',')','-','{','}','|','[',']',':',';','<','>','?',',','.','/','_','='};
		char[] arr = str.toCharArray();
		int jml = arrText.length;
		int jmlDouble = jml*2;
		int jmlTriple = jml*3;
		char [] arrHasil = new char[arr.length];
		
		for (int i = 0; i =jml)&&(acak=jmlDouble)&&(acak=jmlTriple){
				arrHasil[i]= arrText[acak-jmlTriple];
			}
		}
		
		String hasil = "";
		for (int i = 0; i < arrHasil.length; i++) {
			hasil = hasil+arrHasil[i];
		}
		return hasil;
}

 

public String getMd5(String sessionid){
		try {
            MessageDigest md = MessageDigest.getInstance("MD5");
            byte[] messageDigest = md.digest(sessionid.getBytes());
            BigInteger number = new BigInteger(1, messageDigest);
            String hashtext = number.toString(16);
            // Now we need to zero pad it if you actually want the full 32 chars.
            while (hashtext.length() < 32) {
                hashtext = "0" + hashtext;
            }
            return hashtext;
        }
        catch (NoSuchAlgoithmException e) {
            throw new RuntimeException(e);
        }	
}


Java PHP

Published Budget: Rp 100,000
Finish Days: 1
Published Date: 27/07/2018 09:30:38 WIB
Start Date: 27/07/2018 14:04:45 WIB
Finish Date: 27/07/2018 18:43:07 WIB
Project Status: Closed
Accepted Worker: Gifary (RGSolutions)
Accepted Budget: Rp 100,000
Project Ending: Completed

Project Owner

zmoerf
    
9.78/10.00
5,087 Point
#50 dari 345,260
Rated Worker: 10.00/10.00

worker bekerja sesuai waktu dan cukup komunikasi. Insya Allah next project lg

Accepted Worker

RGSolutions
Kota Bandung
    
9.76/10.00
3,943 Point
#72 dari 345,260
Rated Owner: 10.00/10.00

simple dan mudah

  User Bids

taufikbudi
    
9.79/10.00

RGSolutions
    
9.76/10.00

dewaweb
    
9.88/10.00

ibnusadamhusen
    
10.00/10.00

iamdejan
    
0.00/10.00

benymputra
    
0.00/10.00

awtech.id
    
0.00/10.00

Recommended Workers

Muhammad.Rahman

15,347 points
170 projects
    
9.79/10.00

manakreatif

13,462 points
109 projects
    
9.73/10.00

imzers

13,062 points
64 projects
    
9.89/10.00

rakifsul

13,945 points
58 projects
    
10.00/10.00

fauzimarjalih

12,701 points
112 projects
    
9.81/10.00

Recommended Services

Tiru Website Lain Sesuai Keinginan (Cloning)

Rp 650,000
9 sales
    
9.78/10.00

Pembuatan bot line

Rp 1,500,000
6 sales
    
10.00/10.00

Aplikasi Jasa Servis dan panggil Teknisi

Rp 3,800,000
2 sales
    
10.00/10.00

Jasa Pembuatan website Wordpress + Elementor

Rp 650,000
9 sales
    
10.00/10.00

Open Projects

Konversi Encrypt VB dan Decrypt VB ke PHP

Owner: patangahan
Budget: Rp 500,000 - 1,000,000

Buat perbaikan pagination sedikit

Owner: Iwan999
Budget: Rp 150,000 - 300,000

Setting Plugin dan Logo

Owner: edwinteguhn
Budget: Rp 200,000 - 500,000

Membuat Bot Discord

Owner: nafidinara
Budget: Rp 500,000 - 1,000,000

 


Live Chat