Small tags/sites
   21 tags on

Small tags/sites


1 answer

Diffusion in Shamir's secret sharing scheme

The popular command line utility ssss implements the classic Shamir's secret sharing scheme over the generic field $GF(2^q)$ with $8 \le q \le 1024$. When $q>=64$, the constant coefficient ($c_0$) …

43 secs ago
0 answers

AES128 decryption error: javax.crypto.IlliegalBlockSizeException: input must be a multible of 16 when decrypting with a padded cipher

When I encrypt text using AES128 it works fine, then when I try to decrypt using the same encrypted data and key it gives me a javax.crypto.IlliegalBlockSizeException: input must be a multible of …

0 answers

Full package completion in Webstorm

I have a project, where I need to type JSDoc comments with types in Webstorm. Provided code completion almost does what I want. For Example I can type "@param {Err" and press to get auto completion …

2 answers

Block of words converting them into number using sum equation JAVASCRIPT

This is my very first question in this website about javascript code. I've been given an RSA encryption code and our professor has given us a really wierd way to encrypt text. The user enters the ...

1 answer

elgamal decryption in javascript

i need a way to calculate: m = a. b ^(p-1-x) mod p in javascript. i have found this algorithm for calculating base^exp%mod: function expmod(base, exp, mod){ if (exp == 0) return 1; if (exp % 2 == …

1 answer

Security of KDF1 and KDF2 (hash based KDF's)

It's still common to come across implementations of KDF1 and KDF2. Basically these are KDF's that simply derive multiple keys from the key seed and a counter: $K_i = KDF(K_{master}, i) = H(K_{master} …

1 answer

Is it possible to do a bow attack and not be adjacent to enemy in Battle for Wesnoth?

I just started to play Battle for Wesnoth. I did some of the tutorial and I have started a novice campaign. When controlling say the elven archers, I wish to do an attack by bow. Given that it is a …

3 hours ago
0 answers

javascript decrypt crypto-js from ruby openssl

I am attempting to encrypt in ruby and decrypt in javascript. In ruby, I'm using the openssl module, and in javascript I'm using the crypto-js library. I can encrypt and decrypt using the following …

0 answers

How to Generate an AES Key using a Local Private Key and a Remote Public Key in Java?

Hi I was reading the following Wikipedia article on Public Key Cryptography Public Key Cryptography I saw this picture too which shows how to generate a symmetric key cipher using your Private Key …

3 hours ago
2 answers

How do you set the author in a java class comment?

For our in house development it is common use to write the authors of a java class into the class comment. It will be written in the form of * @author Doe, John (john.doe@example.com) All authors …

4 hours ago
1 answer

Elliptic Curve Cryptography : sending an encrypted message using NFC in eclipse android

I'm currently working on an ECC project. So the project goes like this, I want to send an encrypted message from my android phone using NFC to a contactless smart card. The tag is being developed by a …

3 answers

Does adding meta-information suffice for including myself as additional @author of a class?

Me and my colleague are in the process of developing domain model for a small part of our project. Recently he committed skeleton entity classes to our SVN repository without adding JPA annotations. …

4 hours ago
4 answers

Adding author name in Eclipse automatically to existing files

Is there a real easy to use tool (no monster tool) that I can plug into Eclipse, and press a "generate header" button and then the authors name appears in every file in that project?

4 hours ago
2 answers

Programming a Cipher Program (Plain Text->Caesar Cipher->ASCII)?

I really need to know how you would code this or something similar in Java: http://www.cs.carleton.edu/faculty/adalal/teaching/f05/107/applets/ascii.html Here is my attempt I've been at it the whole …

4 hours ago
0 answers

XORing a header with SHA512-hash - secure?

I am writing a application that encrypts text several times and stores the result. The result looks like complete random bytes, therefore I add some random bytes at the end. To let the program know …

2 answers

Control flow of messages in Akka actor

I have an actor using Akka which performs an action that takes some time to complete, because it has to download a file from the network. def receive = { case songId: String => { ...

0 answers

Encrypt RSA private key with AES 128 (passphrase) in Java

I am working on an Encrypted E-mail application based on Java. I'm pretty new to cryptography and such high level programming in general. I have read the Javadoc and pretty much all similar threads on …

0 answers

How do you set incoming security in WCF?

I am having issues with my WCF client with Custom binding. The problem is that I have been able to receive a successful (encrypted) response from the remote Java web service (verified by Fiddler) but …

2 answers

Framework for license-key verification (OS X, Cocoa)?

First of all, I know about this: Licensing Technology for OS X applications? But, since it was posted so long ago, that almost all answers point to dead urls, I think its time for a new question. I …

1 answer

How to find the correct OpenSSL EVP key length for DES3 encryption

I'm trying to implement a hybrid cryptosystem (RSA for key envelope, and DES3 (with two-key option) for data envelope). Thus, I'm trying first to implement DES3 with Openssl's EVP functions. Because …

6 hours ago
2 answers

OpenSSL: I encrypt and decrypt files with RSA keys that I have stored con external files, but sometimes my program chrashes

I encrypt and decrypt files with RSA keys that I generate and store in ".bin" files (it also works storing them in ".txt" files). Now, I read the keys from those files and encrypt/decrypt a message. …

1 answer

How to create the same secret key both for Android and server

Based on the code of the following link https://github.com/SeRPRo/Android-PHP-Encrypt-Decrypt I have made my own implementation of an encryption/decryption mechanism between android and server (API …

1 answer

PEM_read_RSA_PUBKEY error “Expecting: PUBLIC KEY”

I am trying to implement OpenSSL RSA, following is my code for Key generation : #include <stdio.h> #include <openssl/evp.h> #include <openssl/rsa.h> #include <openssl/bio.h> …

7 hours ago
1 answer

bouncycastle fails NTRU generation

There are three types of default security levels of NTRU, implemented in bouncy-castle: 1. NTRUSigningKeyGenerationParameters.TEST157 2. NTRUSigningKeyGenerationParameters.APR2011_439 3. ...

1 answer

How to read a RSA public key in PEM + PKCS#1 format in Python?

I have a RSA public key in PEM format + PKCS#1(I guess): -----BEGIN RSA PUBLIC KEY----- MIGJAoGBAJNrHWRFgWLqgzSmLBq2G89exgi/Jk1NWhbFB9gHc9MLORmP3BOCJS9k ...

2 answers

Using javascript to decode a string

I am doing a challenge on hacker.org, this is what it says "I have a special piece of text that represents a specific value. Here's how I calculate it: Start reading left to right, If a character is …

1 answer

What's wrong with my hill cipher code? (Java Android)

I have some problems in implementing the hill cipher algorithm in Java Android. It runs well on certain condition but it comes lack on other condition. Here is the running app. 1. It runs OK for ...

9 hours ago
0 answers

How to encrypt the video source in video.js player Example Source

How to encrypt the video source in video.js player Example Source <video id="video_player_2" class="video-js vjs-default-skin" controls preload="true" width="768" height="450"data-setup="{}"> …

9 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 ...

9 hours ago
1 answer

multiple shell script execution using jsch

I am using Jsch library to execute about 1000 different of shell scripts in few linux machines and update the status into a table. I used jsch exec channel [ChannelExec], it was working only for the …

10 hours ago
15 30 50 per page
1 2 3