By DoctorEvil on Nextcoin.org
Sponsored by MSIN on BitcoinTalk.org
NXT's Crypto.java and Curve25519.java look kosher aside from a signing bug that is currently being worked around.
| /* | |
| smtpd.js is SMTP server written for node.js | |
| #Changes# | |
| -made to work with 0.6.2 (replaced sys.print with console.log) | |
| -a few bug fixes | |
| sudo node smtpd.js | |
| // server | |
| var net = require('net'); | |
| var HOST = '127.0.0.1'; | |
| var PORT = 6969; | |
| // Create a server instance, and chain the listen function to it | |
| // The function passed to net.createServer() becomes the event handler for the 'connection' event | |
| // The sock object the callback function receives UNIQUE for each connection | |
| net.createServer(function(sock) { |
By DoctorEvil on Nextcoin.org
Sponsored by MSIN on BitcoinTalk.org
NXT's Crypto.java and Curve25519.java look kosher aside from a signing bug that is currently being worked around.
| package ru.psqq; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.io.*; | |
| import java.security.Key; | |
| import java.security.MessageDigest; | |
| import java.util.Base64; |
If you need a small makefile introduction/reference you can take a look at my notes https://www.mauriciopoppe.com/notes/os/bin/make/
Project structure
. project
├── Makefile
├── build
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #ifdef __APPLE__ | |
| #include <OpenCL/opencl.h> | |
| #else | |
| #include <CL/cl.h> | |
| #endif | |
| int main() { |
| /** | |
| * purzi's Count up script V.1 | |
| Don't copy this part :D | |
| donations for idk memes | |
| Btc: DCJ1S92joR9uZfujkxo8utadCEZoWCSBv | |
| ETH: 0x6158e8A6574EdCAa6d229D3b67b726f70C704911 | |
| BCH: qq0yjc8ts8uvt75y2f7kmk3yme2jlhsxwy9w5ua5v2 | |
| you can tip me on bustadice or bustabit "/tip purzi" | |
| */ |
| var io = require('socket.io-client')("http://localhost:3001") | |
| var Promise = require("bluebird") | |
| io.emitAsync = Promise.promisify(io.emit) | |
| io.emitAsync("report", { | |
| "name": "thomas" | |
| }).then(function(data){ | |
| console.log(data) | |
| }).catch(function(e){ | |
| console.log(e.message) |
| #include <iostream> | |
| #include <windows.h> | |
| #pragma comment(lib, "advapi32.lib") | |
| int main() | |
| { | |
| HCRYPTPROV hProvider = 0; | |
| if (!::CryptAcquireContextW(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) | |
| return 1; |
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <Wincrypt.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| /* Declare variables */ | |
| HCRYPTPROV hCryptProv; | |
| BYTE pbData[16]; |