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
$username = $this->input->post('username',TRUE); | |
$password = $this->input->post('password',TRUE); | |
$postData = "contact=" . $username . "&password=" . $password; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $this->base_url."/auth/signinForsa"); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_POST, 1); |
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
from base64 import * | |
def enkripsi(plain, text) | |
enc = [] | |
plain = b64encode(plain) | |
for i, l in enumerate(plain): | |
kunci = ord(keys[i % len(keys)]) | |
teks = ord(l) | |
enc.append(chr((teks + kunci) % 127)) | |
return ''.join(enc) |
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
//*************************************************************** | |
// HEADER FILE USED IN PROJECT | |
//**************************************************************** | |
#include<iostream> | |
#include<fstream> | |
#include<cctype> | |
#include<iomanip> | |
#include<stdlib.h> | |
using namespace std; |