Small tags/sites
21 tags on

Small tags/sites

## R: Predefined background colors for a matrix

On a report I would like to represent a state change matrix between dates. Lets say I have a matrix like this: B = data.frame(c(0, 0, 0, 5, 0, 0,5,0,0,5,0,0,5,0,0,0), nrow=4, ncol=4) ...

5 mins ago

## Implement plausible deniability with AES/RSA

I'm on a crypto app using OpenSSL (I'm more an implementer/cryptographer than a cryptologist), mainly as a hobby, for now. My app will be able to encrypt a file (not a container) with symmetric or …

## pandoc-generated docx misses italic variables in equations


35 mins ago

## Count of hyphenated words and their unhyphenated counterparts in latex files

I have a thesis of approximately 100,000 words, typeset in latex. I have rather inconsistently hyphenated some of the words, for example "spider-fear" and "spider fear". I would like to get a list …

1 hour ago

## Can the XOR of two non-collision-resistant hashes be collision resistant?

Suppose I have two hash functions, of which neither (or only one) is collision resistant, and I want to create a new hash function by taking the bitwise exclusive or (XOR) of the results of those two …

## Estimating the entropy

Given a discrete random variable $X$, I would like to estimate the entropy of $Y=f(X)$ by sampling. I can sample uniformly from $X$. The samples are just random vectors of length $n$ where the entries …

## Is there a Pairing-free ID-based AKE protocol that is secure under the eCK model?

As far as I know, most of ID-based authenticated key exchange (AKE) protocols are CK-secure, and there are few of them which are eCK-secure. All of the eCK-secure ID-based AKE protocols use the ...

## LaTeX on Stack Overflow?

MathOverflow has an awesome engine where you can embed LaTeX in questions, answers, and comments. Can we get something like this going on Stack Overflow? I think it’d be appropriate as I at least ...

## Relation between attack and attack model

I would like to know: What is the relationship between an attack and an attack model. For example, let $\Pi$ be the Lamport signature scheme. This signature has it's security based on the one-way …

## What is the default initialization vector behavior for the Java implementation of AES?

We have a client who is using the Java code below to create a cipher before transmitting us some data: SecretKeySpec localSecretKeySpec = new SecretKeySpec(arrayOfByte, "AES"); Cipher localCipher = …

3 hours ago

## Excessive elements in latex longtable output when more than one row is used in Hmisc

Two very similar commands produce different headers in latex() from Hmisc. The question is: how to get rid of the excessive header that is repeated right in the first page of longtable? ...

3 hours ago

## collision resistant summarizer for long hash values

how we can summarize SHA-256 into shorter values when we for example can't handle more than 128 bits on system? its better just use first 128bit and ignore the rest of bits or split full value and XOR …

4 hours ago

## File Hash of Encrypted File

Simple question. I have a source file and I have encrypted it with a certain public key. If I take this exact same source file, encrypt it with the exact same key a few hours later would the file hash …

4 hours ago

## Ensuring JavaScript hasn't been tampered with

I'm writing a web application that does some client side encryption of data to ensure that I never get to see what the client is sending to my server. What I am really worried about is if a third ...

## Given odd number $n$ count the bases to which $n$ is Euler pseudoprime

As the title says we are given an odd number $n$ and wish to find the number of bases $b$ such that $n$ is an Euler pseudoprime; That is, $\gcd(b,n)=1$ and \$b^{(n-1)/2} \equiv \left( \frac{b}{n} ...

5 hours ago

## Node.js and crypto library

I'm having weird issues with Node's crypto library. I wrote this simple AES testing script: var cipher = crypto.createCipher('aes-256-cbc','InmbuvP6Z8') var text = "123|123123123123123"; ...

6 hours ago

## AES encryption using Verilog

So I took it upon myself to learn all about the FPGA this semester. To test my skills, I picked up a project to encrypt and decrypt files using a FPGA implementation of the age old AES. Now ...

6 hours ago

## How does Google's “authenticator number generator” work?

I have two-factor authentication enabled on my Google account, and I have this app on my phone which generates a number I have to type when I'm logging in to Google-Mail. But I don't understand how …

## How to avoid uppercase function name while using Function?

In LaTeX, I want to define a function in my algorithm, following is my code in case: \begin{algorithm}[h] \begin{algorithmic}[1] \Function{BuildPolicySet}{PolicySet PS, CCR ccr} …

7 hours ago

## Cipher with all unicode characters

I'm trying to create a cipher with a scrambled alphabet contanting all possible characters, including unicodes, chinease/japanease symbols and etc... I found out that I can print up to 65536 ...

## \printglossary does not produce any content

I am having some trouble using glossaries in LateX (TeXnicCenter) and hope someone could give me some advice. I am using the package \usepackage[toc, acronym, section=section]{glossaries} to get a ...

8 hours ago

## BufferedReader/Writer not working correctly with Special Chars

I ran into a little problem with Cipher and BufferedReader/Writer in Java. Everything works fine, if anyone wants my code nethertheless I can post it if you want. The problem is if I try to convert …

## Certificateless cryptography

While reading "Certificateless Public Key Cryptography" by Author Sattam S. Al-Riyami and Kenneth G. Paterson, they have considered generation of private keys by a Key Generation Center (KGC). If the …

## AESEncoder class is not supported in j2me chinese phone(MI)?

In J2ME App I am using this encryption class. My J2ME Application is working fine in all nokia devices. My Problem is that app is not working in MIw200 phone, which is chinese phone basically. I think …

## How to search/replace expressions with parantheses in emacs?

I have a bit of Latex code with lots of maths expressions enclosed in \mathrm{}. I'd like to remove the \mathrm{} code around the expressions, preferrably using emacs. For example, I'd like to ...

10 hours ago

## Do I need to salt PBKDF2 when it's used for AES encryption

If I'm using PBKDF2 to stretch a password into a suitable key for use in encryption with AES, should I be using a random salt (for PBKDF2, not the AES IV)?

10 hours ago

## JavaCompiler classpath with wildcars

I am trying to compile java file at runtime using JavaCompiler like this args.add("-classpath"); args.add("C:\\libs\\*"); JavaCompiler javac= ToolProvider.getSystemJavaCompiler(); …

## Use py2app with Matplotlib and its Tex formatting? Dvipng not found

I have an application put together in py2app on OS X 10.6 which uses Matplotlib to generate graphs. (Using py2app version 0.5.3 and matplotlib version 0.99.3, if it matters.) I have the Tex formatting …

11 hours ago