Small tags/sites
   21 tags on

Small tags/sites


0 answers

Placing figure where it is in latex

I would like to place this figure exactly after the subsection and before the section. what should i do? Thank you in advance. \subsection{Algorithm} \begin{figure*}[h] \centering ...

1 answer

New to cryptology, studying key exchange

I'm just getting an overview of some of the concepts in key exchanging at the moment, and I'm a bit disoriented on a few topics, namely key stretching, key derivation functions and perfect forward ...

0 answers

OpenSSL: How does a server obtain the ek and iv arguments from the client, in order to RSA decrypt a message?

I'm trying to use the EVP utilities in OpenSSL for RSA encryption. My goal is implement the Seal & Open method to encrypt using a public key and decrypt using a private key. Assuming that the ...

2 answers

Script encrypts, but still saves the plaintext instead of the ciphertext

I have an issue with my current program where it is supposed to take a user input, encrypt it by allowing you to choose how much you want to shift by, then save to a file. For unknown reasons my ...

0 answers

Please help me with this Python encryption/ decryption script

The code: import os, random from Crypto.Cipher import AE from Crypto.Hash import SHA256 def encrypt(key, filename): chunksize = 64*1024 outputFile = "(encrypted)"+filename filesize = ...

0 answers

Is it possible to retrieve the plain text knowing the secret key with SHA1 encryption?

I'm trying to configure a payment software. I want to know what the software put exactly in the message. And I know the key, since I provided it. But I don't know the message, that's why I ask this ...

asked 1 hour ago by Yann on Stack Overflow stackoverflow.com
0 answers

How do I Configure 'org-latex-classes in .emacs?

I use emacs org-mode for keeping track of notes and todos. Sometimes I wish to export notes as a latex file, using the official company style. To get the correct heading styles I run the following ...

0 answers

Latex font not the same in matplotlib

I want to have the same font in my matplotlib figures as in my document. Hence I am using the following code: from matplotlib import rcParams rcParams['text.latex.preamble'] = ...

0 answers

Jenkins publishing javadoc fail

Trying to publish my Javadocs with Jenkins but failing. What I have done, by following other posts, is: Installed javadoc plugin in Jenkins Added two goals in the BUILD section of Jenkins (1) ...

0 answers

Compare AES encryption OpenSSL versus .NET(RijndaelManaged)

I need to encrypt a URL. According the specs of the URL it should be (Rijndael) encoded using CBC encryption mode, using an IV of 0., PKCS7 padding and a key length of 128-bit. The decryption of the ...

1 answer

socket error in python 2.7, sending public rsa key to client

I'm programming a client-server communication encrypted with RSA, using tcp sockets. I generate public and private keys, but when I want to exchange the public keys between client and server I get ...

1 answer

JSch scp without known_host file and with StrictHostKeyChecking

I am trying to copy some files from a Windows machine to a Linux machine, which is working fine with JSch so far. I can copy files using StrictHostKeyChecking no or I need to have the known_host file ...

1 answers | asked 3 hours ago by user3374862 on Stack Overflow stackoverflow.com
0 answers

WM-Bus extended layer decoding

I am trying to decrypt wm-bus telegram from Kamstrup Multical21 in C1 mode with Extended Link Layer. The payload together with ELL info is following: 23 44 2D 2C 45 45 71 63 1B 16 8D 20 6A 31 FB 7C 20 ...

0 answers

uniform vs. non-uniform PPT

I'm trying to understand PPT and in particular what the differences are in uniform and non-uniform PPT's. First, this is how I see it: A Probabilistic Polynomial-Time algorithm A is an algorithm that ...

2 answers

Error: “Padding is invalid and cannot be removed” using asymmetric algorithm

I want to encrypt and decrypt the string using asymmetric cryptographic algorithm that is I want to pass different key in encrypt and decrypt function. My code is as follows: public ActionResult ...

1 answer

Probability of SHA256 Collisions for Certain Amount of Hashed Values

I wonder if you can help me figure out that question: Is there a known probability function f: N -> [0,1], that computes the probability of a sha256 collision for a certain amount of values to be ...

0 answers

How to Set Root Directory in Apache Mina Sshd Server in Java

I use Apache Mina Sshd API to start up a local SFTP server in java.In SFTP client i use Jcraft jsch API to create my SFTP client.I successfully start up a server.The problem is that i want to write ...

1 answer

How to decrypt a resource file directly from stream?

I'm programming in Delphi 7 and have embedded my Flash (swf) files in the resource file. To call them and put them on the sreen with component FlashPlayerControl from F-In-Box works fine. Code: ...

1 answers | asked 6 hours ago by HDelphiXE on Stack Overflow stackoverflow.com
0 answers

Decrypt AES-encrypted data with another key

I am encrypting some data using AES. I wonder what are the chances to decrypt that data using another key? I understand that I will receive result different from original value. But the key question ...

asked 6 hours ago by Dima on Stack Overflow stackoverflow.com
1 answer

How do I save a sensitive access code safely on localstorage (or other DB)?

I am building an Ionic/Ng Cordova app for which I want to only provide access to certain views when the user has entered an access code correctly. Upon the first launch of the app, the user is asked ...

0 answers

What is the maximum entropy distribution over all integers (ie. including negative ones) with fixed mean?

I know that the maximum entropy distribution with over the non-negative integers fixed mean is a geometric distributions. However, I cannot find conclusive information about what are the maximum ...

1 answer

Cassandra: how to setup node-to-node encryption?

Cassandra supports both client-node encryption and node-node encryption. It seems like the client-node encryption is simple to setup. Now that i have finished setting up client-node, i was trying out ...

1 answers | asked 7 hours ago by Desert Ice on Stack Overflow stackoverflow.com
0 answers

Average/approximate difference in value between valid consecutive $x$ coordinates in ECC?

From my basic understanding not all values of $x$ coordinates can satisfy a given elliptic curve equation, i.e. some $x$ coordinate values are not valid points on the curve because $x^3+ax+b$ is not a ...

1 answer

Hash Based Message Authentication Codes (MAC) does not match at receiver end

I am trying to create a basic demo application where one class will generate a message to be sent in the following format SignedMessage_using_HMAC.BASE64encoded_message At the receiving end ...

1 answers | asked 10 hours ago by vpate on Stack Overflow stackoverflow.com
1 answer

RSA Decryption from Simple Public Key Values

I'm a little stuck trying to figure out how to decrypt some messages and could use some hints as to what I may be doing wrong. I was given a series of integer values that make up my cipher text. Here ...

1 answers | asked 10 hours ago by KrispyK on Computer Science cs.stackexchange.com
0 answers

RSA Decryption from Public Key Values

I'm a little stuck trying to figure out how to decrypt some messages and could use some hints as to what I may be doing wrong. I was given a series of integer values that make up my cipher text. Here ...

2 answers

org-mode: framebreak does not work with label option in exported beamer

I'm using org-mode to generate beamer presentations. I have (setq org-beamer-frame-default-options "allowframebreaks") so my exported latex is like this: ...

2 answers | asked 10 hours ago by joon on Stack Overflow stackoverflow.com
1 answer

What are the vulnerabilities of this homemade encryption algorithm?

I decided to program a relatively trivial encryption algorithm in my downtime. This algorithm takes a seed from a user (supports floating point seeds), and then adds 1 to the seed for every iteration ...

1 answers | asked 13 hours ago by user3089196 on Cryptography crypto.stackexchange.com
0 answers

Application of Jensen's Inequality. Correct?

Help would be appreciated. Consider $x \in (0,1)$ and $f(x)=x^2$ which is convex we want to show that $\mathbb{E}\Big[f(X)\Big] \geq f\Big[\mathbb{E}(X)\Big]$. Therefore, $\mathbb{E}\Big[X^{2}\Big] ...

15 30 50 per page
1 2 3