Small tags/sites
21 tags on

Small tags/sites

Error while converting public key in pem format to der format in terminal in mac

I have created public private key pair for SSL connection using terminal in mac. I have used following commands to create private key and extracting public key from it: Create public-private key pair ...

how to give the password protection to Zip folder in java?

I need to set password protection for Zip folder via java, not for zip folder files. Without password i should not be able to open the Zip folder. This is the code i found from google. public ...

I don't know whattype of cipher this is

I am trying to solve the following sipher Nosdhiibotidcylhrdeovedljuetre I have no experience with ciphers but substitution didn't seem to work, and since its a long string without breaks process of ...

Expression of heat by the Brownian motion

folks. I was reading a paper from PRE and I'm not sure what's going on about the following equation. So for the system composed of two heat baths governed by Brownian motion, the entropy change of the ...

I am using the Crypt::PWSafe (http://search.cpan.org/~tangent/Crypt-Pwsafe-1.2/) Perl module to decrypt my PasswordSafe database file. An example of what my Perl script looks like is below: use ...

Should @version tag denote the version of the artifact this source file is a part of, or the version when this file was last changed?

Previously my understanding was that the purpose of the @version tag was to show to library users in which release a particular file was last changed. For example, if there is a new release for ...

Creating an encryption program with a choice of three methods! It has issues I am not sure how to fix

#include <iostream> #include <string.h> #include <string> #include <fstream> using namespace std; int get_ascii_int(char ch); int get_offset_ascii(char ch2, int offset); ...

Where in a TLS connection can I get the signature of the content sent by the server?

I want to be able to prove that a given content returned by a HTTPS server was in fact served. I have looked over the whole TLS protocol and I found I can use ServerKeyExchange to get the server's ...

Is there any such thing as “proof of location”?

I'm looking for a way for someone to prove to me their geographical location without a trusted third-party. Imagine wanting to prove to someone you're actually physically in a specific place. I'd ...

ikev2 test vectors for calculating skeyseed

We're working on an implementation of an IKEv2 client and would need test vectors for calculation of SKEYSEED as per RFC4306; specifically, the various rounds of the prf+, as we are testing against ...

ElGamal signatures systems

Let $p$ prime number $q/p-1$ prime and $g\in (Z/pZ)^*$ element of order $q$.Also $a\in \{1,...,q-1\}$ the private key and $y\equiv g^a\pmod p$ the correspoding public key.For each of the following ...

Does CoreData encryption require any type of extra documents when submitting to the app store

I have seen many questions regarding other types of encryption but I have yet to see one that answers whether or not core data encryption requires you to submit any extra documents when pushing an app ...

Find the ElGamal authentication algorithm of signature $(r,s)$

Let $p$ prime number $q/p-1$ prime and $g\in (Z/pZ)^*$ element of order $q$.Also $a\in \{1,...,q-1\}$ the private key and $y\equiv g^a\pmod p$ the correspoding public key.For each of the following ...

Reducing two futures of options with _ orElse _ does not yield Some

Inspired by this question, I thought the following is a solution: import scala.concurrent.Future val x: Future[Option[Int]] = Future.successful { None } val y: Future[Option[Int]] = ...

Attack on Double Encryption Scheme

In this protocol: A → B : { <[A, {K}pk(B)]> }pk(B) B → A : { <[B, {K}pk(A)]> }pk(A) I'd like to determine why this is insecure. How can the attacker learn the key K if A and B are both ...

How to include Matlab code into LaTeX in colour?

I need Matlab code, e.g. the one here, in LaTeX and in colour (the comment is green, for/if/else/end is blue). % super cooles Programm i = 1 for i = 1:10 if i > 3 i=i+2 else ...

What's Jeremy's Encryption Algorithm?

As a result of their solutions to this puzzle, store owner Jeremy promoted both Cerberus and Quark to top managerial positions. Soon after starting their new roles, they were somewhat surprised when ...

store passwords in an encrypted form in hbase

I am storing my database credentials in hbase. Is there any way to find write the passwords in an encrypted form ? So, when I scan the hbase table the password appears in ****** format.

Creating public RSA key with RSACng: specified key is not a valid size for this algorithm

I'm currently trying to create a RSA encryption key as part of a web service authentication for Tableau. I'm an noob when it comes to cryptography and can't quite figure out how to generate the ...

What is the type of this bug?

the bug is basically didn't set the input length long enough. How do we call this kind of bug, NPE? "many problems with running javadoc stem from command lines that have become too long - even though ...

RSA encryption using SecKeyEncrypt gives error -4 (errSecUnimplemented)

I'm trying to encrypt some data with RSA using the Security framework on iOS. I want to encrypt a simple base64-encoded string as follows: NSData *data = [[NSData alloc] ...

How to really treat security between peers in WebRTC

Recently I've been implementing WebRTC in my project and would like to add security and privacy to the couple. I then decided to search on and found something if it is really necessary to impose ...

Body of clojure future executed twice in 2 CPU environment

I'm seeing some unexpected behaviour when kicking off a clojure future in an environment with multiple CPUs, I do not see this behaviour running on my single CPU (multiple core) dev pc. Essentially ...

Building Java interface for Open MPI

I am trying to build the Java interface for Open MPI, using the instructions on this page. Once I extracted and navigated to the openmpi-1.8.7 directory, I entered ./configure --enable-mpi-java ...

In java doc comments is @see used with {@link } or without?

When I want to put comment to see the other method which one is correct? With {@link ClassName#methodName} or without? /** * @see ClassName#methodName * * @see {@link ClassName#methodName} */

CryptoJS Aes decryption in php not working

I am asking this question again, because my last question wasn't answered properly I am making a CMS, and i have made an encryption system(using cryptoJs), to provide a bit more security to website ...

DESede Encryption in iOS

Can anyone please provide the equivalent objective-c code for this java code. Also please tell me what frameworks and libraries i will need to add for this to work correctly. public static String ...

PBEWITHSHA256AND256BITAES-CBC-BC on Android : number of iterations for keygeneration and cipher?

I'm using PBEWITHSHA256AND256BITAES-CBC-BC with BouncyCastle. public static String algorithm = "PBEWITHSHA256AND256BITAES-CBC-BC"; I've done this method to generate the secret key: private void ...

Latex file: 0.tex content: \documentclass{article} \begin{document} $$\frac{\partial p_{dyn}}{\partial n} = A$$ \end{document} Shell file: 0.sh content: latex ...