Questions tagged as 'criptografia'

2
answers

Possible SHA256 return 128bytes after signing?

I am using the following code to get my certificate and sign my CNPJs, however I am using the SHA256 algorithm, but it is returning 128bytes. Does anyone know what's wrong? Follow the Code: Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJSoftwar...
asked by 06.11.2014 / 12:21
1
answer

Error decrypting string

I have a method for encrypting and decrypting data. I tested it in Console Application and it works perfectly. When I take this method to the controller, I get the following error:    Invalid length for an array or Base64 string. This occ...
asked by 21.01.2015 / 18:28
1
answer

Decrypt MD5 [duplicate]

I need to change this code to decrypt the data encrypted with it: public static string MD5HashCrypt(string text) { MD5 md5 = new MD5CryptoServiceProvider(); //compute hash from the bytes of text md5.ComputeHash(ASCIIEncoding.ASC...
asked by 08.12.2017 / 23:14
1
answer

How to upload safely?

How to upload a file to an FTP server without the login information of this server being visible in the code? For example, I do not want to do the following: string FTPhost = "ftp://192.168.1.1/"; string FTPpass = "SenhaDoAcessoFTP"; string...
asked by 02.12.2017 / 22:21
2
answers

How to encrypt GET and copy the parameter

I have a feedback email that is sent to a user after the service is completed. This email has 5 links, where each one is the respective service grade (from 1 to 5). I want to direct to the page to update the database, the evaluation of the...
asked by 03.10.2017 / 20:50
1
answer

How to implement a permutation algorithm in Python?

I'm trying to implement a permutation algorithm in Python. It receives as input a phrase and a key (numeric value) that matches the amount of letters each group should have, numerical sequence from 1 to the value of the key. Here is a...
asked by 19.09.2017 / 16:41
1
answer

When to Use Encryption When Developing for Mobile Devices?

I'm studying and assembling projects for mobile devices, and I always come across dozens of data transmission, some important others do not 1) I would like to know if it is convenient to encrypt all the data I saved in sqlite 2) In code, t...
asked by 16.03.2017 / 18:47
1
answer

C # Encrypting files

I want to send files to friends but I want to make sure no one can see your content. I would like an example to perform the encryption of the files in C #.     
asked by 03.08.2016 / 14:11
1
answer

C # - Use of A3 Certificate (Card Reader) + Windows Service

Good morning, everyone. I created a windows service (C #) where I subscribe to NFC-es XML using the FlexDocs DLL. Using the A1 certificate everything works normally, but when using A3, the frame where I must enter the PIN does not open / app...
asked by 04.07.2016 / 16:30
1
answer

Problem with password encryption (PHP)

I'm doing a Pet Shop system and the problem is this: the customer does the registration, and the password is encrypted to the bank, but at the time of login it gives error. Example: the user is Marcos and his password is 123. At the time of logi...
asked by 21.10.2015 / 02:28