Questions tagged as 'criptografia'

1
answer

Generate random random string in NodeJS

Because, using the Javascript language on the NodeJS platform, generating a string, preferably with configurable size, random enough to be used in cryptographic routines can not be insufficiently random? If you propose more than one soluti...
asked by 15.02.2014 / 20:28
1
answer

How to avoid collision of upload file names

I'm making a site for uploading images, but when I upload two files with equal names, what I had before adds to the files directory . This is the code I use for upload : if(empty($_FILES)){ echo "<center><h1>Please, select the...
asked by 27.07.2015 / 05:14
2
answers

Passing data encrypted by URL in ASP.NET MVC

I need to pass a link, but I did not want to leave it too exposed, I would like to know how to Encrypt at least the id of the object. I created a class for Cryptography, but it generates "/" and this places it as a route in MVC.     
asked by 28.09.2015 / 22:08
2
answers

Key doubts in symmetric cryptography

Hello, searching for li encryption on symmetric, asymmetric encryption, digital signature ... But I have a question, when we use software like TrueCrypt, KeePass or the like, is the encryption key the password we choose? Or is the key and pas...
asked by 26.02.2015 / 16:59
1
answer

RSA, SSLStream - Key Exchange

Good people, I'm using SSLStream to communicate between a client and server, using OPENSSL. And this my client, is a machine (digi), which as a requirement has to use RSA encryption. So I have to do a public key exchange between client and serve...
asked by 03.07.2014 / 14:29
2
answers

Encrypt Ruby on Rails source code?

I need to deploy a ready-made Ruby on Rails framework system in a client's enterprise, the problem is that this client can not access the source code. Is there any way to "encrypt" or "compile" my code to be unreadable to third parties?   ...
asked by 17.11.2014 / 12:34
0
answers

What is the difference between the X.509 and PKCS # 7 terms in digital certificates?

Via a WebApi .Net 4.6.1 I'm integrating with a service that requires data to be sent on a TLS 1.2 connection digitally signed using the PKCS#7 pattern, but when checking an integration example , I realized that the implementatio...
asked by 12.12.2018 / 18:47
1
answer

"Invalid Data" error when trying to decrypt a file using TripleDES

I am developing a routine that decrypts information from a ".txt" document using TripleDES. However when decrypting it it generates the following error:    Invalid data. In StackTrace it looks like this:    in   System.Security.Cryp...
asked by 29.05.2014 / 20:41
1
answer

Encode and decorate URLs

I have an application that I need to send links with user information, basic example below: https://www.meusite.com.br/[email protected]&token=token I want to encode the [email protected]&token=token part wh...
asked by 31.10.2017 / 00:44
1
answer

The iv used in AES-CTR can be stored in clear?

I want to use the AES cipher in counter mode and I'm not sure if I can keep the iv (nonce + counter) clear.     
asked by 20.03.2014 / 17:52