Questions tagged as 'criptografia'

0
answers

C # Cryptography equivalent in Java [closed]

I have the method below in C # and I need to do something equivalent in JAVA, but I can not. Could you help me? private const string chave = "eMbARaLhaDo"; public static string Descriptografar(string Message) { byte[] Results; System....
asked by 19.12.2016 / 16:56
0
answers

Error in decryption code using vb.net! [closed]

I'm having trouble decrypting with the code below that I found on the net: When you debug it is possible to see that in the TripleDES.Key property has the value 16 in length and Buffer 15, is it for this reason? How t...
asked by 13.06.2015 / 23:44
2
answers

Encrypt ini files

I need a script that compiles a .ini to avoid an easy reading. The file should be read with PHP. It seems that C # has a similar feature. The question is how do I do this and then I read .ini with PHP. Example of file .ini...
asked by 10.12.2014 / 22:01
1
answer

Cryptography in sqlite

I need to save some data in SQLite, but this data needs to be encrypted, and, when the user needs it, decrypted. What is the best way to do this?     
asked by 08.03.2017 / 17:52
1
answer

Hash and Cryptography Algorithms

I'm doing work on the difference between Hash and Encryption. For me it is easier to talk about Hash and to cite examples since I usually use SHA1 and MD5, but talking about encryption is difficult since I do not know any encryption algorithm...
asked by 20.06.2018 / 14:08
1
answer

What is the safest way to display ID (DB primary key) in web pages?

I'm developing a web application, which in some cases would need to be available in the HTML (so JS can interact) user publications ID, comments ID and others ... Example: <div id="cmt_IDDOCOMENTARIO" class="comment-text"> Comentár...
asked by 07.03.2018 / 15:40
2
answers

About RSA encryption [closed]

Hello, RSA encryption generates public.key and private.key However, if I do some application in java, and the hacker gets these keys, it can extract the content. Can you camouflage those public.key and private.key that will be inside th...
asked by 24.03.2017 / 20:48
1
answer

How to make function to encrypt password in C #? [closed]

How to do function to encrypt password in C #? I want to get the password attribute and encrypt it. public String gravarCadastro(Cadastro cadastro) { string sql; int retorno; string resp; try {...
asked by 07.10.2016 / 19:58
1
answer

C # AES Cryptography with MD5

I'm doing a college job where I need to encrypt a string with AES and Md5. When I do the encryption, it returns the normal result (I think), but when I go to decrypt, it returns the following error:    CryptographicException : The input d...
asked by 23.11.2017 / 15:36
2
answers

TypeError: Incorrect padding

I am trying to decrypt AES, but I am encountering the following error:    Traceback (most recent call last):     File "./teste2.py", line 190, in main ()     File "./teste2.py", line 186, in main decrypt (password)     File "./teste2.py",...
asked by 14.03.2016 / 00:18