Small tags/sites
21 tags on

Small tags/sites

## Create Decrypt Sub/Function Using DataSet

There are a couple times when I have to perform a For Next block and decrypt data, so I figured why not make it reusable. I'm not sure if it should be a Public Sub or Function. I am assuming that it …

57 secs ago

## cryptographically good random elliptic curves?

After an answer here, about generate elliptic curves, I've start thinking about the algorithm. The mentioned algorithm will produce curves in the Weierstraß Reduced Form (WRF) over finite fields: …

14 mins ago

## Where does a Hyper-V guest get its entropy when generating a certificate authority private key?

According to findings by the EFF's SSL observatory, there are "tens of thousands of keys that offer effectively no security due to weak random number generation algorithm." My understanding of that …

## IntelliJ says “Warning: java: foo/bar/Baz.java uses unchecked or unsafe operations”, but it doesn't say in which line it is referring to

I am getting this warning: When I click on the image, it just opens the associated Editor, but it doesn't say the line number where the warning is raised. I don't want to add ...

## a doubt in Rijndael's key expansion sizes

I've often heard/read that AES key sizes 256 & 192 would be weaker than 128 or not stronger as expected from the size increase, but I've never seen a proof. How does one proof the strength of a …

## Is this Pseudo Random Function (PRF): F(k,x) = f(k,x) - f(k,x-1)

I have a question about Pseudo Random Functions. Let $f:\{0,1\}^n×\{0,1\}^n → \{0,1\}^n$ be a secure PRF. Define $F(k,x) = \big(f(k,x) - f(k,x-1)\big)\bmod2^{n}$. Is $F$ is a secure PRF? Note: a …

## Is there a LaTeX command to save a copy of a tex file in another directory?

I am wondering if there is a command I can use at the end of my .tex file so that after compiling a copy of the .tex file is saved in another pre-specified directory? I haven't tried any code ...

38 mins ago

## Breaking Double Encryption

I am trying to understand how an attacker knows when he has successfully decrypted a ciphertext for an assignment. As such, some pointers/hints for the following questions would be greatly ...

## What is the best way to share a shared secret key over HTTPS to be used for HMAC authentication?

I am writing an application in Java that will be using SHA-1 HMAC message authentication. From what I understand, a connection over HTTPS is considered secure enough to share a secret key in plain …

## Java BouncyCastle ECC Keys and Self Signed Certificates

I've been scouring the internet for hours looking for a Java example for creating Elliptic Curve (EC) keys and self signed certificates. So far I've only found snippets and examples, many of which do …

## Adding a horizontal rule after each exercise in the exam class

Is there a way of automatically adding a horizontal rule after each question using the exam class? I wouldn't like to have to add them one by one, but I can't find any option related to this... ...

1 hour ago

## Encoding and byte errors in Ruby using OpenSSL?

I was getting this error: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) when trying to pass a variable from Rails to JavaScript via this line: window.nonce = '<%= j …

## Writing if-then statements in LaTeX using the value from an R variable in knitr/Sweave

I am currently using knitr along with R 3.0.2 and RStudio in order to produce a LaTeX report. My report is typed up as a .Rnw file, and compiled using the knit2pdf function. I would like to use an …

2 hours ago

## Write a Playfair encryption program

Write a program that takes two lines of input and uses the first as a key phrase to encrypt the second according to the Playfair encryption technique. Wikipedia describes Playfair encryption in some …

2 hours ago

## Should I learn to use LaTex to write up a History Masters Thesis?

So I reviewed the "What are the advantages or disadvantages of using LaTeX for writing scientific publications?" question on this forum and am sitting on the fence at the moment whether or not to use …

2 hours ago

## RSA Encrypt and Decrypt Strings on Android

I'm reading pages and pages since weeks but I can not find a solution. I want "only" to: Make my own public and private keys to encrypt and decrypt strings between my PHP website and android ...

2 hours ago

## Adding java docs to a program in netbeans

How can I add java docs to my java program using netbeans?

2 hours ago

## encrypt images for viewing in html or client side

I want to encrypt my images such that i can use it to display images on my webpage but whenever any user tries to open that image through source code then it will display an encrypted code but not the …

2 hours ago

## How can I enable Javadoc warnings in Eclipse?

Is it possible in Eclipse to have the warnings displayed in the editor about Javadoc issues. for example, I often rename / change parameters of methods and forget to update the javadoc accordingly. …

2 hours ago

## Chunk in knitr fails to compile in latex; shaded rows of xtable

This is a chunk in knitr. It fails to compile in latex, although the chunk itself runs and gives me a table that (perhaps naievely) looks OK? <>= library(xtable) end_table<-matrix(rnorm(20), …

## RSA key pair encryption/decryption between Ruby and JavaScript?

I've been working on something that encrypts a piece of data in Ruby using OpenSSL and decrypts the data in JavaScript using the JavaScript Forge library. The (unsecure, but this is for research ...

## Why is inheritedDoc not defined on constructors?

I was wondering if there is any valid reason why javadoc does not support inheritedDoc on constructors. Suppose I have class A { /** * Constructor of A */ A(){} /** * Does something */ ...

3 hours ago

## How to encrypt a message written in a file entered by the user?

required.get(c); } cout << "The encryption is over"; required.close(); destined.close(); } This program should encrypt/decrypt a message in a file, that the user should …

4 hours ago

## How to distinguish low entropy and high entropy with the information produced using shannon entropy

I calculated an entropy level of user's behaviour for its possible states of occurence (H:=Home, w:=Work or E:=Elsewhere) for a day. Say a user A has its possible states for each hour of a day as ...

## Hash GPS coordinates to be unrecoverable yet still representative?

So I would like to write a program that allow computers that know their GPS locations, to store their location into a database as well as put out the 'locations' of the other computers and see which …

5 hours ago

## Calculating entropy for user- and random passwords

When calculating entropy for user passwords, what is the standard method used? It almost seems as if everybody has his or her own opinions on what to use. Some reference xkcd, other people mention ...

## Why are there few (none?) easy to use encryption libraries?

If I search stack overflow for how to safely encrypt data, one of the first hits is someone's custom encryption scheme. I've seen several similar questions on this site, and in general they are all …

6 hours ago

## RSA using SpongyCastle

My knowledge of encryption is very basic, so apologies for any ignorance on my part. Within an Android app I am currently trying to mimic the execution of this command using the SpongyCastle library …