Small tags/sites
   21 tags on

Small tags/sites


1 answer

PHP function only working once

I'm trying to encrypt three sets of data to insert into MySQL database. However only the first one is working ($email). Firstly I post data from a form, make several checks (does the user exist ...

3 answers

How to place a character below a function in Latex?

Is it possible to place a character or a formula below an other part of a larger formula in Latex? foo f(x) = ... x In case that this example is not clear. I'd like to make one of my custom ...

3 answers | 49 mins ago by t6d on Stack Overflow stackoverflow.com
3 answers

Basic LaTeX questions

Two (hopefully quick) questions about LaTeX: How do you number select functions? I'm working in a documentclass{article}, if that matters. I want to have certain functions numbered such as ...

3 answers | 56 mins ago by bpc89 on Stack Overflow stackoverflow.com
2 answers

Shell script encoder

please'd like to take a simple doubt would like to know how can I encode my .sh script shell script against third-party modifications? I can watch the cpanel their installation script found in the ...

1 answer

Is there really any way to nullify or avoid MITM attacks?

The question pretty much sums it up. Is there any way to make an attacker who is successfully performing an MITM attack to actually not be able to read or change the messages? Assuming there is no ...

1 answers | 57 mins ago by VTCAKAVSMoACE on Cryptography crypto.stackexchange.com
0 answers

Chosen plain text and chose ciphertext definitions clarification

I am trying to understand a concept of CPA and CCA attack and I cannot get one thing from the definition. If an attacker can execute a CPA attack for something like Send 100 dollars to attacker ...

0 answers

In HMAC-MD5 Implementation, why “i_key_pad” and “o_key_pad” if They Are Public and Constant?

Please Consider: English is My Second Language This Wikipedia article on HMACs shows a part of a HMAC-MD5 implementation making use of i_key_pad and o_key_pad: # [...] def hmac_md5(key, msg): ...

0 answers

Import-on-demand declaration with subpackages only

Related : How can I compile "import pack.*" with ant/javac, when there are no such classes? Suppose we have the given package structure parent | ---a ---b where the package parent only ...

2 answers

Formatting source listings with listings & framed packages

I currently have a problem, that listings package cannot spread source files across multiple pages. In the doc is written, that the "framed" package should be used for various formatting option. ...

2 answers | 1 hour ago by ovanes on Stack Overflow stackoverflow.com
2 answers

Cannot find symbol Java Initilisation RSA

Hi I would like to run the following command // Initialise the RSA cipher with PUBLIC key Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); cipher.init(Cipher.ENCRYPT_MODE, ...

1 answer

Authenticating with a document

Hope you're having a nice day. I need to implement an authentication system between a "document" (it's not exactly a document, but an object without any computing capacity, only able to store ...

1 answer

What are the required security properties for salts?

I was recently thinking about password hashing (maybe caused by the PHC progression). I started to think a little more about it and got stuck at this question: What security properties do ...

1 answers | 3 hours ago by SEJPM on Cryptography crypto.stackexchange.com
1 answer

Definition of topological entropy

What the meaning of the limit that appears in the definition of topological entropy? Let $X$ a compact metric space and $f\colon X\to X$ a continuous function and a subset $K \subset X$. The ...

0 answers

Hide mysql AI UID's, unique and not unique results, always same length

I need to convert mysql auto-increment bigint uid's (1-20 digit) into strings of the same length for public displaying and url's (hiding the real uid). I also need to create 3 variants, one that ...

0 answers

Java AES 'last block incomplete in decryption' issue

I'm practicing encryption stuff and ran into this problem I can't figure out: javax.crypto.IllegalBlockSizeException: last block incomplete in decryption at ...

2 answers

Is entropy a meaningful concept on a quantum level?

My naive assumptions, as I really am at a pretty basic stage in QM, are as follows: Classically, entropy gives us a practical measure of the direction of time, as opposed to our physical laws which, ...

2 answers

Latex Equation and bmatrix

I'm trying to use official equation, and it's giving me some trouble. I have this equation of a simple matrix operation, and LaTeX isn't liking it. What's wrong with this statement? ...

2 answers | 5 hours ago by swing on Stack Overflow stackoverflow.com
2 answers

Partition-based entropy of a sequence

The entropy $H$ of a discrete random variable $X$ is defined by $$H(X)=E[I(X)]=\sum_xP(x)I(x)=\sum_xP(x)\log P(x)^{-1}$$ where $x$ are the possible values of $X$, $P(x)$ is the probability of $x$, ...

0 answers

Securely Storing Keys in Android Keystore

I am making an android application that communicates with a server. I'm using token based authentication on my server, and to pass information to the client from the server, I am using asymmetric ...

0 answers

Theres GOLD in dem der hills!

A pirate's treasure... Billy the pirate buried his plunder at the mouth of a large river. He killed all of his crew then made his way on foot back to civilization. He ended up getting sick with yellow ...

1 answer

Is there any direct way of encrypting DTMF tone so that only intended will receive this?

I googled for any help on this particular requirement, since nothing came through I have decided to post this question. I will keep it short, I need a help on DTMF generation using android. The ...

1 answers | 7 hours ago by Nikhil.T on Stack Overflow stackoverflow.com
0 answers

How to break this PRNG encryption scheme?

Suppose we have the following symmetric algorithm: key = random bits G = PRNG(seed: key) input = [0,1,1,0,1,0,0,0, 0,1,1,0,1,0,0,1] // "hi" in ascii The key can be thought of as a sufficiently ...

1 answer

Writing to my CipherStream does not write to my ByteArrayOutputStream

I'm trying to write a method in a testing environment to get it working before using it in my project. This method should take a string, turn it to bytes (using UTF-8 charset), run it through an AES ...

1 answers | 7 hours ago by RogueCSDev on Stack Overflow stackoverflow.com
1 answer

Simple XOR encryption giving unexpected results

... char text[256]; fgets(text, 255, stdin); xorEncrypt(text, 'a'); ... void xorEncrypt(char *string, char key) { int i, string_length = strlen(string); for(i=0; i<string_length; ...

1 answers | 8 hours ago by Kidades on Stack Overflow stackoverflow.com
1 answer

Caesar Cipher: I want to shift user input (plaintext) “n” number of times

/** * * @author hamza */ public class Caesar_Chipher { // This is where I call my functions public static void main(String[] args) { userChoice(); } //User ...

2 answers

Does CTR mode yield a PRF?

Can the keystream generated by CTR mode be considered a pseudo-random function? I give more information. Assume $f$ is a PRF. We define a function which takes 2 inputs, the desired length, and an ...

2 answers

Best approach to this authentication/encryption scenario

My scenario (dumbed down): Added for clarity: App1 is a HTML page with a CUSTOM URI. App2 is a C# console based program I have a application that will launch another application. So we have App1 ...

0 answers

Using same modulus for RSA

I know that there exist some attack when using same modulus. Can two different pairs of RSA key have the same modulus? RSA cracking: The same message is sent to two different people problem But ...

0 answers

Encrypt video for local playback only

We have a Linux machine with a USB port and Internet connection. We need to show videos on that machine to interns, but we want to protect the files form copying. Only local playback should be ...

1 answer

Encryption on cookie codeigniter 3.0.x

This is my first time using the encryption library. I have read the documentation and I have done some encryption on strings. I want to ask this time is this is a valid thing to do. My code: public ...

15 30 50 per page
1 2 3