Skip to content

Instantly share code, notes, and snippets.

View whichbuffer's full-sized avatar
:octocat:
Focusing

Arda Büyükkaya whichbuffer

:octocat:
Focusing
View GitHub Profile
public static string DecryptData(string data2Decrypt)
{
AssignParameter();
byte[] getpassword =
Convert.FromBase64String(data2Decrypt);
StreamReader reader =
new StreamReader(@"D:\privatekey.xml");
string publicPrivateKeyXML = reader.ReadToEnd();
rsa.FromXmlString(publicPrivateKeyXML);
reader.Close();
@whichbuffer
whichbuffer / Test_Project
Created April 22, 2020 08:53
libsignal-protocol-c
whichbuffer@ubuntu:~/s/libsignal-protocol-c/build$ ctest
Test project /home/whichbuffer/s/libsignal-protocol-c/build
Start 1: test_curve25519
1/13 Test #1: test_curve25519 .................. Passed 1.41 sec
Start 2: test_hkdf
2/13 Test #2: test_hkdf ........................ Passed 0.00 sec
Start 3: test_ratchet
3/13 Test #3: test_ratchet ..................... Passed 0.01 sec
Start 4: test_protocol
4/13 Test #4: test_protocol .................... Passed 0.01 sec
import java.util.ArrayList;
/**
* Created by dev on 28/08/15.
*/
public class MobilePhone {
private String myNumber;
private ArrayList<Contact> myContacts;
public MobilePhone(String myNumber) {
@whichbuffer
whichbuffer / calc.java
Created April 23, 2019 19:32
simplecal
package com.company;
public class SimpleCalculator {
private double firstNumber;
private double secondNumber;
public double getFirstNumber(){return firstNumber;}
public double getSecondNumber(){return secondNumber;}
public void setFirstNumber(double firstNumber){this.firstNumber=firstNumber;}
#define _CRT_SECURE_NO_WARNINGS
#define MAX_STRING_LENGTH 80
#define TABLE_SIZE 20
#include <limits.h>
#include <stdio.h>
#include <iostream>
#include<stdio.h>
#include<string.h>
@whichbuffer
whichbuffer / wıyn.c
Created March 7, 2019 19:00
what is your name
#define _CRT_SECURE_NO_WARNINGS
#include <limits.h>
#include <stdio.h>
#include <iostream>
int main(){
int x[10];
char name[11];
char myname[11];
@whichbuffer
whichbuffer / hesap_mak.cpp
Created February 25, 2019 10:31
hesap makinesi fonksiyonlar
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
#include<iostream>
using namespace std;
int add(int, int);
int sub(int, int);
int mul(int, int);
@whichbuffer
whichbuffer / rand.cpp
Created February 25, 2019 09:09
Random numbers
#include <stdlib.h>
#include <stdio.h>
#include<iostream>
#include <ctime>
#include<cstdlib>
using namespace std;
int main() {
int random_number{};
@whichbuffer
whichbuffer / printMegaBytesAndKiloBytes.java
Created February 24, 2019 11:54
Converting KB to MB, GB, TB dynamically
package com.company;
public class Main {
public static void main(String[] args) {
printMegaBytesAndKiloBytes(2500);
}
public static void printMegaBytesAndKiloBytes (int kiloBytes){
if(kiloBytes >= 0){
@whichbuffer
whichbuffer / kare.c
Created February 17, 2019 18:44
C Programming Functions
#include <stdio.h>
int kare(int x) {
int kare;
kare = x * x;
return kare;
}
void main() {
int s = 5;
printf("%d", kare(s));