Cryptography Questions
Ad
What could be the benefit of such a complicated function to test if variable is not zero?
I'm working on my master's thesis (computer science) on code which is written for post-quantum-secure signatures. the whole thing can be found
How am i doing this wrong: SubtleCrypto (Node.js) encryption to RSACryptoServiceProvider (.net) decryption with OAEP
I've been trying to crack this for a while with no success. the server-side decryption uses rsacryptoserviceprovider rsa-oaep. i can't
Trusted Platform Module (TPM) TSS program compilation error
I am new to tpm. i want to generate random bytes using tpm via esapi(esys) interface. i am trying to initialise esys_initialize().
Is there a best .NET algorithm for credit card encryption?
The .net system.security.cryptography namespace has a rather bewildering collection of algorithms that i could use for encryption of
Where can I set the number of rounds of key in crypto++ (AES/CBC mode)?
Are the rounds of key already set in cbc mode(aes-128:10 rounds,aes-192:12 rounds,aes-256:14 rounds) or is there other way to set the rounds of
I have P & G-- how do I use the Wincrypt API to generate a Diffie-Hellman keypair?
There's an msdn article here, but i'm not getting
Is Bouncy Castle API Thread Safe?
Is bouncy castle api thread safe ? especially,
Sign data in node js and verify it in Java
I'm creating the keys pair with crypto in nodejs. var {
Failing to replicate CryptoJS.enc.Hex.parse(hash) in powershell
I'm trying to replicate this code in powershell: const hmac = cryptojs.hmacsha256(cryptojs.enc.hex.parse(hash), salt); seed =
Haskell RSA crypto random generator type
My goal is to generate a keypair using generatekeypair from codec.crypto.rsa. this function requires a generator
Ad
Is it possible to recover certificate thumbprint (sha1 fingerprint) from private key material?
Is it possible to recover certificate thumbprint (sha1 fingerprint) only from private key that will match original certificate thumbprint?
pbkdf2 returns a hash with 128 characters instead of 64
I want to create password hashes when creating users and store them to my database. my database password column stores hashes of 64 chars
How to encrypt message on browser and decrypt on node server without third-party libraries?
For some reason i can't rely on ssl encryption. and i don't want to use any third-party libraries. so i tried to use native browser's
Cipher functions:OPENSSL_internal:BAD_DECRYPT
If you're trying to decrypt a string using nodejs, you will get this error if you're not using the proper input encoding and output encoding.
Decryption from RSA encrypted string from sqlite is not the same
I am using rsa with private/public key. i am trying to encrypt a string, save it in a database (sqlite) and then retrieve it again and encrypt.
How to generate a PEM-formatted Key from a 64Byte raw hex-formatted Key
I have the following problem: after recreating the public key from a signed transaction, i try to encrypt some payload with it. however
Error using sign.sign() in Node.js crypto, bad decrypt
New to node.js and i got error using sign() in crypto.please help! i created sign using const sign =
ImportError: The version of cryptography does not match the loaded shared object
I am using paramiko. any idea how i can use the paramiko.rsakey.from_private_key() function? i'm interested in using a function to
NodeJS DES ECB encryption of hex data with module 'crypto'
I am trying to encrypt/decrypt hex data using node js module 'crypto' with des-ecb algorithm.
crypto-js wrong des-ecb decoding
I need to decrypt base64 string using base64 key with ecb mode and iso10126 padding using des. in theory it is simple:
What is the difference between using string and buffer in Node.js encryption
I saw both of the codes below on some websites. one used buffer to wrap crypto.randombytes() object for cipher key and
Ad
Android: CipherStream-API for AEAD Ciphers inacceptable slow
We are having an android app which a decrypting and encrypting large (up to 100mb) files over http-streams. therefore, we are using
AES decryption with PyCryptodome does not produce the expected result
I have some difficulties reproducing aes encryption and decryption in python. context: a year ago, i created a small
NodeJS How to encrypt (AES algorithm) data using crypto-js, or crypto package encoded in UTF8 using custom keysize, iv, mode and padding
I am working with an api that require me to encrypt data before sending it with custom parameters and i am unable to get a good response from the
Rust rng getting randomness from operating system vs crypto rng's
This is a question that does have a lot of overlap with what might be posted on cryptography stack exchange,but it's mostly rust-specific, and
Convert an element in tuple to a bytes-like object
I'm trying to base64 encode some rsa encrypted data, but the rsa encryption returns a tuple and the base64 encoding requires a bytes-like
Is there a way to create an AES cipher from a hashed key-secret?
Having lost the plaintext secret, but having the hashed key, it's posible to encript and decript in openssl like so (keys and iv are not the
InvalidKeySpecException when trying to Load RSA public key from file- Java
I am creating public and private rsa keys and saving them to separate files using the code below. the file are successfully created without any
How do i create a public ledger using blockchain for my application?
I'm developing a nodejs application and trying to integrate blockchain in it. here in my application, i want to create a blockchain where only the
How can I generate a secure and unique token to use in an online ticket service?
I need an approach to generate a cryptographically secure and unique token in order to use in an online ticket sale service. what
AES/GCM encryption in Flutter (Dart)
I am trying to implement aes/gcm/nopadding encryption in flutter. i have successfully implemented it in java but when i tried to decrypt it in
Nodejs encryption problems with npm "crypto" module
When i try to encrypt or decrypt a token, i have this error : internal/crypto/cipher.js:92 this[khandle].initiv(cipher,
Ad
How to generate 33-byte compressed NIST P-256 public key?
I need to generate such public key and do the additional signing of the bytes (which will include this generated previously key) i need to
Image manipulation in Python using PIL and facing problem with fromarray()
I am writing a script to encrypt and decrypt an image in python3 using pil. here i am converting the image into a numpy array and then multiplying
How do I get a random BigInt in a specific range (Dart)
I'm sorry if this question has been asked before but i cannot find any solution that helps me. basically, i have a huge number
Generate Shared Key From Public Key Using Elliptic JS Library
I am trying to use the elliptic js library to generate a shared
Paramiko/cryptography deprecation warnings: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers
I keep getting the following deprecation warnings when doing simple ssh connections:
How to decrypt AES 256 CBC with Dart
I want to convert below php script to dart i tried a lot case but nothing help me. i have tried following code; but throw an exception here
How to hash a CAN message?
I want to hash a can message received from a vehicle. the following code written in python is used to receive the can
Unity client / NodeJS server : how to sign and verify data?
I also posted this thread on unity's forum, but as it's more server/crypto oriented i'll ask here aswell. as mentionned in the title, i'm
Is there a benefit to performing JWT operations as async?
I'm using the highly popular jsonwebtoken package
Getting error Cannot find module 'crypto'
I am trying to use node crypto module in angular 7 for asymmetric encryption. and used below command to import the crypto module
Unknown message digest in crypto and Node 10
Here is part of my code that uses crypto and works fine with node
Ad
SHA256 Digest Signature with Node-Forge
I'm building a node.js acmev2 client and trying to rely only on a single cryptography library to keep the code simple. the native node crypto
ECDH private key size
I know that key sizes in ecdh depend on size of elliptic curve. if it is a 256-bit curve (secp256k1), keys will be:
Problem with installing Charm-Crypto for Python3
Hello fellow programmers, currently i am trying to install
Nodejs Generate a keys to sign a piece of data
I have some blob data for example: const buffer = buffer.from('acdff12ba','hex'); how i can generate keys in
Create a Diffie Hellman Object from hex encoded p and g parameters
Om my application i receive the diffie
Diffie Hellman Key exchange between Java Client an nodejs Server
I have node js server for my android app and i want the communication to be secured using dh key exchange. i am able to generate the prime
TypeError: generateKeyPairSync not a function
I am trying to use the
Why Are node scrypt Hashes the Same Given the Same Inputs?
I was trying to find a compare or verify function for node's built-in crypto module, specifically for scrypt, as most password-hashing modules i
Error while finalizing cipher with EasyCrypt library on another device
I am trying to decrypt a voice file after encrypting it, uploading it to firebase then downloading it. and for the encryption/decryption i am
Steam OpenID Signature Validation
I've been having this issue for a while now. i'm trying to add a sign in through steam button, which upon login, not only retrieves the user's id,
Check Moodle's hashed password
Moodle saves hashed passwords in the user table in this the format: if the stored password is:
Ad
encrypt text message using rsa public key
I have been given a public key by my client, and i want to send him a text message which would be encrypted with his public key. the public key is
How can I decrypt message from user input in python using cryptography?
Im able to decrypt the message running the script, but not when i use the user input method to get the encrypted message. i have this
Random number generation in python
Is this a valid way to generate n random bytes that are cryptographically random? def
(RSA) This script I got off of stackoverflow returns a negative d value
So i stumbled upon this thread on here with this script and it returns a negative d value and my p and q values are both prime. any reason for
how do I sign Tronix transaction locally in nodejs?
I've been using: https://github.com/cobowallet/tron-wallet
Can't decrypt using crypto module in Nodejs
I am trying to write a script which equivalent to php opensssl decryption, this is what i have tried, var crypto =
Node.js verify.verify() strange behaviour
I've been working on a digital signature node.js app then i faced strange behaviour which i couldn't figure out. first i generated
Decrypting PHP openssl_ecrypt with NodeJS crypto errors
We have a legacy php system that encrypted some data via openssl_encrypt. the php code is pretty straight forward. (all values are randomly
How to make Diffie Hellman connection between client(CryptoJS) and server(Crypto Node.js)
I'm trying to make connection between server and client. i create ecdh keys with elliptic.js and try to cipher-decipher messages. secret keys are
"How to Diffie Hellman" using RSA and JavaScript
How can i reach a shared secret using diffie hellman key exchange with existing base64 rsa 2048 bit not pem encoded key pairs in javascript? i get
Cannot generate 32 bytes AES Secret using pkcs11js
I wanted to generate a 32 bytes aes secret key with the code below. i am using the node module pkcs11js as i need to connect to hsm. however, when
Ad
Can the random seed of HashCode in C# be considered cryptographically random?
The documentation of
NodeJS implementation for Python's pbkdf2_sha256.verify
I have to translate this python code to nodejs: from passlib.hash import pbkdf2_sha256 pbkdf2_sha256.verify('12345678',
Using third-party API to constantly(dynamically) refreshing the data List in Flutter framework
I'm trying to make a simple app using flutter, cryptocurrency price tracker. using
Verifying An RSA Signature In .NET
I've generated a private and public key pair in node using node-rsa and can successfully sign and verify using those keys in node. what
How to produce valid signature at Binance API using Vanilla Javascript: {"code":-2014,"msg":"API-key format invalid."}
I've spent several hours trying to get the correct response from the endpoint. for that purpose i need to send a signature string generated by a
RSA Public Key from Java into NodeJS
I'm having some trouble with using a public key from java to encrypt within nodejs. i've created an rsa key within keytool
How to install matplotlib? [python]
I have a problem when i want to install matplotlib via pip: i did: $ sudo pip install matplotlib
Generate Hash for Twitter OAuth
I'm trying to generate a hash as described at twitter's developer page:
OpenSSL hash of a file is the same in C
Am learning to do the hash of a file in c using openssl but i always get the same hash. i have tried different files and content but the hash do
Is python-ecdsa signature size correct?
On the bitcoin wiki i found that bitcoin uses the ecdsa algorithm with the secp256k1 curve. relevant links:
Encrypt in PHP, decrypt in C
I'd like to encrypt a string in php and then decrypt it in c. i'm stuck on the decryption part. (php) i first encrypt the string:
Ad
HMAC-SHA256 in C with OpenSSL - how to get a correct output
Here is the function i use to encode a string: #include <openssl/evp.h> #include <openssl/hmac.h> unsigned char
Cannot read public key from MbedTLS in Java BouncyCastle ECDH
I am trying to do an ecdh between embedded device running mbedtls and java using bouncycastle. when i compare the produced key lengths i get a 66
OpenSSL Sign and Verify in C with RAW EC generated Keys
I generate my ec private key as random number and my ec public key as the multiplication of the generator for the random number. now i
Does there exist an AES 128 or 256 GCM implementation in pure JavaScript or C?
I have been searching around for a pure js implementation of aes 128 or 256 gcm but haven't found anything on github. if none exist, perhaps there
How can I test crypto api samples in The Linux Documentation?
I want to use crypto api and i found linux kernel documentation about it.
Why is an s-box input longer than its output?
I don't understand where the extra bits are coming from in this article
Zk-Snarks library in JavaScript
I am experimenting with zk-snarks and wanted to know if there was any library i can use in javascript. so far i have found out
Decrypt a 4-digit number
I just made a simple program in c that takes a 4-digit code and encrypts every digit (previously decomposed, that goes from 0 to 9) using this
base58 decoding & storing big numbers?
I am trying to make a base58 decoder in c following this tutorial
Code won't run when button is pressed
So i have been working on my coursework and i am trying to encrypt a password. however, the code runs as soon as i start to initialise the program
JWT Signature to base64url uint8array
I'm trying to turn a string of a jwt token signature into a uint8array.
Ad
Unable to install 'secrets' on python 3.5 (pip, ubuntu 3.5)
I am trying to use the library secrets on python 3.5 on ubuntu 16.04. it does not come with the python installation and i am not
Invalid key length in crypto.createCipheriv
I generated a base64-encoded key using this code in nodejs v8.11.0: const secret = 'shezhuansauce'; const key =
Equivalent of nodejs crypto crypto.createSign in Python
I want to get the same result with python. function generatesignature(basestring, privatekey, clientsecret) { var signwith = {
The difference between crypto module in Node.js and CryptoJS in AES256 decryption
I'm currently trying to convert the decryption code using cryptojs into the method using crypto module in node.js. i guess there are some
RSA decrypt failing between Java and browser using web crypto api
I'm trying to get encrypted response from server using rsa public key. cipher is generated on server side but decoding on client side fails. web
NodeJS Crypto equivalent in PHP?
I'm looking for a way to decrypt a file since a few weeks. but it's impossible to recover the file intact in php, only with node. but i would like
SubtleCrypto ArrayBuffer Key to String
I've been looking at subltecrypto to encrypt/decrypt text messages, and wanted to extract the key that is used to string, but using the same
How to generate a private/public key pair to encrypt messages
I need to generate a keypair in my flutter app, but it seems that there aren't any libraries to do so. there is one library called
Blake2b-512 with ED25519 in PHP with NanoSalt library (Nano Crypto)
I'm trying to generate a nano private key, public key and address (that's a cryptocurrency) in php. i successfully generated private keys but i'm
How to recover a RSA public key from a byte[] array?
I'm wondering if it's possible to recover a rsa public key that i have converted to byte array previously. byte[] keybytes =
AES Key Generation from variables
I want to code a custom key generator in python. this key will be used as an input (along with the plain text) to aes algorithm for encryption (i
Ad
Error while trying to decrypt RSA
Trying to decrypt the below value which is already encrypted using rsa privatekey i'm using same key pair publickey to
What is the best low-tech protocol to simulate drawing names out of a hat and ensure secrecy?
Each year at thanksgiving, my family has drawn names out of a hat to determine who they'll be a "secret santa" for the christmas gift exchange.
Ad
Blog Categories
Ad