-
BLS stands for
- Barreto-Lynn-Scott: BLS12, a Pairing Friendly Elliptic Curve.
- Boneh-Lynn-Shacham: A Signature Scheme.
-
Signature Aggregation
-
It is possible to verify
n
aggregate signatures on the same message with just2
pairings instead ofn+1
.
This file contains 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
// https://github.com/s0l0ist/node-seal/blob/main/FULL-EXAMPLE.md | |
// https://github.com/s0l0ist/node-seal/blob/main/USAGE.md | |
// See also https://inferati.com/blog/fhe-schemes-bfv | |
;(async () => { | |
const SEAL = require('node-seal') | |
const seal = await SEAL() | |
const schemeType = seal.SchemeType.bgv | |
const securityLevel = seal.SecurityLevel.tc128 | |
const polyModulusDegree = 4096 |
This file contains 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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Buildroot 2022.02.3 Configuration | |
# | |
BR2_HAVE_DOT_CONFIG=y | |
BR2_HOST_GCC_AT_LEAST_4_9=y | |
BR2_HOST_GCC_AT_LEAST_5=y | |
BR2_HOST_GCC_AT_LEAST_6=y | |
BR2_HOST_GCC_AT_LEAST_7=y | |
BR2_HOST_GCC_AT_LEAST_8=y |
This file contains 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
-module(mydes). | |
-export([test/0, complement/1]). | |
complement(<<>>) -> | |
<<>>; | |
complement(<<1:1, Rest/bitstring>>) -> | |
Complement = complement(Rest), | |
<<0:1, Complement/bitstring>>; |
This file contains 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
(ns chan_hash) | |
(import '[org.apache.commons.codec.binary Hex]) | |
(import '[java.nio ByteBuffer]) | |
(require '[clojure.core.async :as async :refer [chan go >! <! pipeline go-loop <!!]]) | |
(def sha256-digest (java.security.MessageDigest/getInstance "SHA-256")) | |
(defn hexify [bb] | |
(Hex/encodeHexString bb)) |
This file contains 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
const bcrypt = require('bcrypt'); | |
const saltRounds = 12; | |
const myPassword = "password"; | |
bcrypt.genSalt(saltRounds, function(err, salt) { | |
bcrypt.hash(myPassword, salt, function(err, hash) { | |
console.log("Hash: " + hash); | |
// Store hash in your password DB. | |
}); | |
}); |
This file contains 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
from Crypto.Cipher import DES | |
from bitarray import * | |
def int_to_nibble(i): | |
bnr = bin(i).replace('0b','') | |
x = bnr[::-1] | |
while len(x) < 4: | |
x += '0' | |
bnr = x[::-1] | |
return bnr |
This file contains 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/env bash | |
# Call script with: | |
# VAL=pouet ./my-script.bash | |
var_val="${VAL}" | |
echo ${var_val} | |
output="$( | |
echo "[${VAL}]" |
This file contains 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.weblogism.darklaf; | |
import com.github.weisj.darklaf.LafManager; | |
import com.github.weisj.darklaf.theme.DarculaTheme; | |
import javax.swing.*; | |
import javax.swing.tree.DefaultMutableTreeNode; | |
import javax.swing.tree.TreeCellRenderer; | |
import java.awt.*; |
This file contains 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
diff --git a/build.gradle b/build.gradle | |
index ce4ed682..2afa9261 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -169,6 +169,9 @@ ospackage { | |
from(jar.outputs.files) { | |
into 'lib\\ho' | |
} | |
+ from(configurations.runtime) { | |
+ into 'lib\\ho' |
NewerOlder