Small tags/sites
   21 tags on

Small tags/sites


1 answer

After update to 5.4, fopen can't read file

I have a website on a host that recently switched from PHP 5.2 to 5.4, and required us to chose a new php.ini file: 5.4 plain, 5.4 solo (just one php.ini file used throughout the site), and 5.4 fast. …

4 mins ago
7 answers

Testing a hardware random number generator

The Raspberry Pi has a built in hardware random number generator but there doesn't appear to be any public documentation on the hardware, and even if there were it would be questionable (what company …

1 answer

C# random function algorithm implementation and it's randomness

What is the c# random algorithm implementation and is it a good pseudo-random from cryptography perspective?

14 mins ago
2 answers

Generating AES key after ECDH

I am using ECDH to have a shared secret between Alice and Bob one running on Android and the other on embedded. My understanding is that the best practice is that both sides generate an AES key to ...

15 mins ago
0 answers

How to calculate Modulo using a standard calculator for a one time pad encryption

Hi everyone i wrote a simple python script to preform one time pad encryption I would like to be able to decrypt the ciphertext by hand , In my script i use mod 26 this is how i was shown to ...

1 answer

Salting and Hashing with PBKDF2

I am trying to learn cryptography with saving passwords in database with hashing and salting, so I decided to make a login-system trying implementing this system. My database consist of UserID int …

2 answers

Transposition Cipher in C

I have been able to kind of get my transposition cipher to work a little bit. However, i am running into problems such as not being able to take in more than 5 characters in a text file. Currently my …

59 mins ago
0 answers

Latex vs Mathematica for typesetting?

I'm currently an undergraduate engineering student, and I am confused. I have a fairly decent (basic) knowledge of Latex for typesetting documents. I was wondering if anyone has used Mathematica for …

1 answer

What does it mean when two encrypted files, encrypted with the same method but with different keys, when xor'd together, produce a repeating pattern?

Let's say I have fileA and fileB, both encrypted somehow, but in the same method with different keys. If I xor them together, they will make a repeating pattern of 32 bytes length. What does that …

1 hour ago
0 answers

Latex code for autogeneration of list of tables

I am facing problem in autogeneration of list of tables in my latex code.Actually I am new in latex I tried adding \listoftables also some packages such as fancyhdr still I couldn't make it.Below I m …

1 hour ago
2 answers

Amount of simple operations that is safely out of reach for all humanity?

Cryptographic primitives usually assert some security level given as number of operations to mount an attack. Hash functions, for example, give different security levels for collision attacks, ...

0 answers

Using Texmacs with a table template

i woudl like to use texmacs and wanted to incorporate a table template such as here http://tex.stackexchange.com/questions/112343/beautiful-table-samples However, the code for these templates ...

2 hours ago
2 answers

Password generator function in R

I am looking for a smart way to code a password generator function in R: generate.password (length, capitals, numbers) length: the length of the password capitals: a vector of defining where ...

1 answer

Encoding in java (js to java)

I've got this piece of js code which I need to convert to proper java code for usage in my Android app: toHex(Crypto.util.bytesToBase64(Crypto.SHA1(password, { asBytes: true }))); I've found out …

0 answers

Storing private messages in a database

I am creating a portal where users can send private messages (PMs) for a very large audience. So I want to encrypt the messages and store them in the database. But I do not want to ask the users for …

8 answers

Should all sites use SSL by default?

We are in the process of moving our web architecture to a new environment. Included are dozens of different sites ranging from almost completely static to dynamic sites requiring authentication and …

1 answer

How to get a 'million rounds of PKCS#8 + PBKDF2' with OpenSSL?

I posted this question Is a passphrase-protected SSH private key susceptible to a dictionary attack? a few days back. An excerpt from the final answer: With PKCS#8 + PBKDF2 and one million ...

0 answers

Mount Luks encrypted drive cloned with dd

I cloned with dd my full encrypted HDD. Now I use my external drive via usb to boot into the OS(Ubuntu 12.04) and would like to be able to mount my second drive and do periodical rsync actions. I ...

5 hours ago
2 answers

How to decrypt in PHP a string encrypted with 3DES in C#?

I'm using the following code to decode a string in a C# program of mine but I also need to be able to decrypt the same string server side with PHP. Is there an equivalent in PHP of the following c# …

5 hours ago
1 answer

Opensaml Assertion Signature validation failed for decryted Assertion

I have decrypted a SAML assertion using Opensaml. Although decryption happens without a error, when I tried to validate the Signature of that Assertion it fails with the error ...

2 answers

C# encryption and decryption

In c#.net, when im trying to decrypt the file it shows me this error but it works for encryption. ERROR: The process cannot access the file SecureDownloadManager.log because it is being used by ...

0 answers

Mathjax spacing is wrong in scriptstyle \bmod

(This is mainly addressed to Davide Cervone.) a\bmod 3 renders correctly in display or inline normal size, but when I use it in a superscript it is not properly spaced. $$a\bmod 3; 2^{a\bmod 3}$$ …

6 hours ago
0 answers

Need tips on POSTing end variables from a few functions

http://jsfiddle.net/B34Jq/ hey everyone, id like some help with a client side Caesar encryption i'm working on for uni, for the most part it works i think?, i just cant seem to get the end encrypted …

7 hours ago
0 answers

Why is GPG file encryption so much slower than other AES implementations?

Correct me if I'm wrong: When encrypting a file, GPG creates a one-off AES encryption key and encrypts that key using RSA. This is supposedly to take advantage of AES's superior performance when ...

0 answers

Php encryption type

I had mysql database long time back I had saved some data of my site with some encription. Can you please tell me what type of enctription I had used Because I lost the source code. ...

7 hours ago
1 answer

LaTeX: How to prevent text from creeping in between figures and tables

I have a question on floats in LaTeX, such as figures in tables. In my document, I have a section of consecutive images and tables that runs across several pages. I would like to keep this section ...

7 hours ago
0 answers

Affine Cipher Decryption - Android

I'm developing a sms application using Affine method. I successfully encrypt my message and send it over. When I get the message and try to decrypt it nothing happens. Please help...... this is my …

8 hours ago
1 answer

Entropy for Haar measure on $O(n)$

Let $G$ be a locally compact group. A measure $\mu$ is the right-Haar measure on $G$ if for every $g\in G$ and $E\subseteq G$ Borel set $\mu(Eg)=\mu(E)$. It is known that every locally compact group …

1 answer

How can a taglet know about the class it's located in?

As far as I can see the taglet api has exactly one class in its package: Taglet, if you change Taglet.html to package-summary.html, there's nothing else in it (and there's this mildly scary message: …

11 hours ago
1 answer

Does all information in the universe come from the observer?

In absence of the observer any system undergoes unitary evolution, that is reversible evolution without entropy change. It is believed that the initial state of the universe had very low entropy, ...

15 30 50 per page
1 2 3