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> | |
#include <string.h> | |
#include <sodium.h> | |
int checkone (char *hxsecret, char *hxpub, char *hxplaintext, char *hxencrypted) { | |
int pklen = crypto_box_PUBLICKEYBYTES; | |
int sklen = crypto_box_SECRETKEYBYTES; | |
int txtlen = strlen (hxplaintext) / 2; | |
int encrlen = strlen (hxencrypted) / 2; |
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
#!/usr/bin/python | |
from __future__ import absolute_import, division, print_function | |
from nacl import exceptions as exc | |
from nacl.encoding import Encodable, HexEncoder, RawEncoder | |
from nacl.hash import generichash | |
from nacl.public import Box, PrivateKey, PublicKey | |
from nacl.utils import StringFixer |
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
#!/usr/bin/python | |
# | |
from __future__ import absolute_import, division, print_function | |
from nacl import encoding | |
from nacl import exceptions as exc | |
from nacl.hash import sha512 | |
from nacl.public import PrivateKey | |
from nacl.utils import random |
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
#!/usr/bin/python | |
# | |
from __future__ import division, print_function | |
import argparse, json, os, random, string, subprocess, sys | |
class argonRunner(object): | |
GOODCHARS = string.ascii_letters + string.digits | |
def __init__(self, args): | |
self.exe = args.exe |