标签(空格分隔): 密码学
本文介绍目前现代密码学的最先进技术, 前半部分主要翻译自 《Cryptographic Right Answers》,附上收集的资料,和byron个人的理解。
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
void ensure_single_process(const char * id){ | |
struct sockaddr_un sun; | |
if(NULL==id || strlen(id)+1>sizeof(sun.sun_path)){ |
<?php | |
$url="https://weixin.qq.com"; | |
$url="https://www.alipay.com"; | |
$url="https://www.baidu.com"; | |
// Initialize session and set URL. | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
// Set so curl_exec returns the result instead of outputting it. |
#include <sodium.h> | |
#include <iostream> | |
#include <string> | |
#include <string.h> | |
using namespace std; | |
/* | |
* reference: | |
* https://download.libsodium.org/doc/password_hashing/index.html |
#include <openssl/ecdsa.h> | |
#include <openssl/ecdh.h> | |
#include <openssl/evp.h> | |
#include <openssl/sha.h> | |
#include <openssl/bio.h> | |
#include <openssl/pem.h> | |
#include <iostream> | |
#include <string> | |
#include <cassert> |
标签(空格分隔): 密码学
本文介绍目前现代密码学的最先进技术, 前半部分主要翻译自 《Cryptographic Right Answers》,附上收集的资料,和byron个人的理解。
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha256" | |
"log" | |
) | |
func main() { |
#include <stdint.h> | |
#include <iostream> | |
#include <string> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include "patch_elf.h" | |
using namespace std; | |