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
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(); |
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
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 |
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 java.util.ArrayList; | |
/** | |
* Created by dev on 28/08/15. | |
*/ | |
public class MobilePhone { | |
private String myNumber; | |
private ArrayList<Contact> myContacts; | |
public MobilePhone(String myNumber) { |
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.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;} |
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
#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> | |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <limits.h> | |
#include <stdio.h> | |
#include <iostream> | |
int main(){ | |
int x[10]; | |
char name[11]; | |
char myname[11]; | |
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
#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); |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include<iostream> | |
#include <ctime> | |
#include<cstdlib> | |
using namespace std; | |
int main() { | |
int random_number{}; |
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.company; | |
public class Main { | |
public static void main(String[] args) { | |
printMegaBytesAndKiloBytes(2500); | |
} | |
public static void printMegaBytesAndKiloBytes (int kiloBytes){ | |
if(kiloBytes >= 0){ |
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
#include <stdio.h> | |
int kare(int x) { | |
int kare; | |
kare = x * x; | |
return kare; | |
} | |
void main() { | |
int s = 5; | |
printf("%d", kare(s)); |