Questions tagged [encryption]

13311 questions
1

votes
2

answer
2.2k

Views

Decrypting Stored Password on PL/SQL Developer

When you save connection details on All Around Automation's PL/SQL Developer, the password is encrypted as follows: DisplayName=Oracle Production IsFolder=0 Number=7 Parent=2 Username=user Database=db_host:1521/db_name ConnectAs=Normal Edition= Workspace= AutoConnect=0 ConnectionMatch=536870911 Pass...
Hambone
1

votes
2

answer
45

Views

javax.crypto.BadPaddingException: pad block corrupted sometimes

I have the following code for encrypt public static String encrypt(String value, char[] secret) { try { final byte[] bytes = value != null ? value.getBytes(StandardCharsets.UTF_8) : new byte[0]; SecretKeyFactory keyFactory = SecretKeyFactory.getInstance('PBEWithMD5AndDES'); SecretKey key = keyFactor...
Gag Baghdasaryan
1

votes
1

answer
2.5k

Views

Node.js correct way to make rsa encrypt?

i'm trying to create a WS for make soap request. In the body of the message there is a field that contains an encrypted text. I have the public key to encrypt the text but the only result that i obtain is that the text is not recognized. I use crypto module of node for making request and the text is...
AngelPoyel
1

votes
1

answer
1.2k

Views

how to store CryptoJS encrypted password in database

i am quite new to CRYPTO JS encrypted stuff and i am trying to store encryted hash in database(I am trying to store in firebase database). var hash = CryptoJS.AES.encrypt('my message', 'secret key 123'); I am trying to store hash variable in database. But when i am trying to store, it shows me error...
1

votes
2

answer
503

Views

How to get RSACryptoServiceProvider public and private key only in c#

I am running below code to get public and private key only, but it seems it outputs the whole XML format. I only need to output the keys as shown in Public and Private Key demo static RSACryptoServiceProvider rsa; private RSAParameters _privateKey; private RSAParameters _publicKey; public RSACrypto(...
ARH
1

votes
6

answer
113

Views

Convert ArrayList<String> to byte[]

I want to be able to convert an ArrayList that stores the contents of a file read from a BufferedReader, then convert the contents into a byte[] to allow it to be encrypted using Java's Cipher class. I have tried using .getBytes() but it's not working since I think I need to convert the ArrayList f...
munjyong
1

votes
2

answer
141

Views

Encrypt chat messages stored in Firebase Database

I am making an application in which chatting is also a feature for which I am using firebase realtime database. Though all the data stored in firebase is via SSL but I want that even the administration is not able to see that messages. I thought of implementing the end-to-end encryption by using the...
Mayank Raj
1

votes
2

answer
30

Views

Unique hash as authorization for endpoint

I've already saw, that sometimes companies are sending customized links to get to some resource without logging in. For example some company send me email with link to my invoices: www.financial.service.com/ and there is no any authorization behind this endpoint, they only rely on fact that I am onl...
user2771738
1

votes
1

answer
33

Views

Does encrypting password multiple times in different encryption middleware work?

So, this is just a random thought. if I encrypt a password and encrypt its salt into another encrypt middleware. would it strengthen the password's privacy from potential hacker, or is it just a poor attempt? please enlighten me. bcrypt.genSalt(saltRounds, function(err, salt) bcrypt.hash(myPlaintex...
1

votes
1

answer
35

Views

Is it secure to use SHA hash of the secret value as its external ID?

I am trying to design the system where I need to store users' secret values in database (private and public key strings). The storing of secrets itself will be done with the help of HashiCorp Vault. But I have one more requirement that disallows to store two equal pairs (private key + public key)....
jahra
1

votes
1

answer
203

Views

Why operation on list is slower than operation on numpy array

I am doing a project on encrypting data using RSA algo and for that, I have taken a .wav file as an input and reading it by using wavfile and I can apply the key (3, 25777) but when I am applying the decryption key (16971,25777) it is giving wrong output like this: The output I'm getting: [[ 0...
Sandipan
1

votes
2

answer
5k

Views

CryptDeriveKey fails for AES algorithm name

I'm trying to implement AES encryption in my application. I have the following code to create a hashed version of the user password. PasswordDeriveBytes passwdHash = new PasswordDeriveBytes( password, salt, 'SHA1', 128 ); byte[] keyBytes = passwdHash.CryptDeriveKey( 'AES', 'SHA1', 1...
Praetorian
-2

votes
0

answer
15

Views

Send crypted byte[] by POST

This the code on client side,who crypt a text message (password) and make a call to server On both side (client android /server php), encrypte and decrypte works, i use the publickey to encrypte and privatekey to decrypte, and ofc same pair of key, the problem seems to be on the post parameter, i a...
Julian
1

votes
1

answer
56

Views

Enabling Encryption on a Redshift Cluster with existing data

I've been charged with enabling encryption on a Redshift cluster which has a significant amount of existing data. Based on this link I know that when enabled it will create a new cluster and copy the existing data across making access to it during this time readonly. We have a number of ETL jobs tha...
Paddy
1

votes
0

answer
46

Views

rijndael aes turkish character not displayed (classic asp)

Response.LCID = 1055 Response.Codepage = 65001 Response.Charset = 'utf-8' knm = 'ışöçü' sss = 'asd' enc = AESEncyptString(knm,sss) dec = AESDecyptString(enc,sss) response.write(dec) Results = ????? I tried it with Base64. knm = Base64encode('ışöçü') sss = 'asd' enc = AESEncyptString(knm...
tolga
1

votes
0

answer
63

Views

How to use library in python or js?

I'm python\js developer. I'm trying to encrypt/decrypt data with 'GOST 28147-89 algorithm', but i can't understand how to USE it. data to encrypt: %some large text, like lorem1000% key for encrypt: afdfGRerehrehtwICJAAGByqFAwICHgEDQwAEQHuYflp31mEqb1YLSTOlzWJCUWDsDmNVZ9Lor7bkJfbrSnsFg7gcHGNuGoIhfds+...
Nikolay Gogol
1

votes
1

answer
81

Views

How to hash GET parameters in url before show in url?

I have simple html form in my website: Enter message id And when I enter id and click to 'Encode' button showed my added ID. How I can show id parameter in hash way to user? Example functions for encode and decode:
Andreas Hunter
1

votes
1

answer
28

Views

Gameresearch / Understanding generation of player id

I've collected data based on game statistics. I can't figure out what might be the function behind the generation of player ids. I think its based on the registration time of the user/player. Here is a sample of player ids, sorted: 59f39d7046b16841df49bb76 59f39d7046b16841e06b1b47 59f39d7102153a762...
fLoo
1

votes
0

answer
51

Views

RSA verification failed when I use some code from xlnx uboot

I'm trying porting some code to do RSA verification. I googled ,and found some code in xlnx u-boot . I put this rsa-mod-exp.c in my code and of course with some other .h files. My SOC is little endian ,so I use the little endian definitions. After all above are done , I try to create a signature to...
xutao
1

votes
1

answer
249

Views

how to add MP4(proprietary codecs) support in cefpython

I want to add MP4 and MP3 support in Cefpython, I read many things on the internet that add 'proprietary_codecs=1 ffmpeg_branding=Chrome' in your GYP_DEFINES' but I want to ask that is these changes are same for cefSharp, cefPython? but after change what I have to do?
avi
1

votes
0

answer
283

Views

SSL traffic decryption - iOS

I'm looking for a way to perform a network trace between an iOS app I'm developing, and a server I own, using my mac to intercept traffic. Traffic is encrypted via SSL ; I own the domain, and the PKCS12 certificate used to encrypt the traffic. I've been able to perform the trace itself following App...
Jeremie Vincke
1

votes
0

answer
60

Views

iOS - Are any assets included in the app bundle protected/encrypted when app is distributed

I am including assets such as a database with semi-sensitive information that I do not wish to encrypt itself that will eventually contain up to 500K records. What would it take for someone to be able to see files that were bundled with the app binary for distribution? Can a smart person with a jail...
sweepez
1

votes
0

answer
226

Views

Client Server Program with Intel SGX

I wanted to design and build a secure remote computation application. I wanted to leverage Intel SGX capabilities and I have thought of 2 approaches but due to lack of development experience, I could not be able to decide which approach I should implement. Scenario: Typical client(assumed secure + N...
Roshan Mehta
1

votes
1

answer
265

Views

Is it safer or unnecessary to encrypt a JWT with one key agreed upon by all programers of a project?

I am currently working in a e-commerce project in which i am designing the Server-Side of an API (in PHP on Laravel 5.5) while my two colleagues are designing the Android and Ios apps which will get all their data from my side. The communication of sensitive and non-sensitive data will be done enti...
Frank.Lowell
1

votes
1

answer
261

Views

1 KEY = AES + PBKDF2 + HMAC

My algorithm template this: ... Mkey = '123' // from Master Key KdfKey = SHA512(Mkey) // from PBKDF2 password KdfSalt = SHA256(AesIV + KdfKey) // from PBKDF2 salt Pbkdf2 = PBKDF2(KdfKey, KdfSalt, 64 + 32) // '64+32'=OutputLen, Iteration is user selected AesKey = sublast(Pbkdf2, 32) // AES 256 bit CB...
CorbySoft
1

votes
0

answer
43

Views

How To Hide Strings Inside DLL File While Compiling?

I'm using the XorString class (with FORCEINLINE constructor) to hide strings like 'How are you?' but I can still see strings like c : \ u s e r s \ h a t t r i c k \ s o u r c e \ r e p o s \ h k . s k i n s \ d e p s \ j s o n \ s r c \ d e t a i l / s e r i a l i z e r . h p p even while they are...
Hattrick HKS
1

votes
2

answer
1.7k

Views

Laravel 5.5 change password encryption on login

I want to change the Laravel's default password encyption. I want to use my own. For the registration I know how I can do it: in the RegisterController I can change the bcrypt function /** * Create a new user instance after a valid registration. * * @param array $data * @return \App\User */ protec...
TheAngelM97
1

votes
1

answer
275

Views

Use SEE SQlite Encryption Extension in C#

I'm creating an SQLite database with ADO.NET usyng System.Data.SQLite, now I need to encrypt it using AES-256. I have access to SEE (SQLite Encryption Extension) and am looking on how to use it along with System.Data.SQLite. Previously we used Devart to handle the extension and encrypt the database...
roma8716
1

votes
0

answer
123

Views

Java RSA Encryption to file decryption error loading and saving to file

I have been trying to solve why my piece of code to do some basic encryption isn't working. I have tested the keygenerator and using the encrypt and decrypt directly, and that seems to work fine. However if i load and save to files in the following code, it seems to give me a decryption error in my...
mineshmshah
1

votes
1

answer
213

Views

Security - pass password /secrets to Webapi

What is the best practice to pass sensitive information like password/secret from angular to Webapi? Should we need to hash/encrypt them at the client before sending to webapi? Having https:// protocol would be enough to pass the sensitive information over the wire without encrypting? Let me know yo...
Balaji
1

votes
1

answer
159

Views

Swiftmailer Failed to encrypt S/Mime message. Error: “error:0906D06C:PEM routines:PEM_read_bio:no start line”

I'm trying to encrypt a message in SwiftMailer. The relevant code looks like this: $smimeSigner = Swift_Signers_SMimeSigner::newInstance(); $smimeSigner->setEncryptCertificate('cert.pem', OPENSSL_CIPHER_AES_256_CBC); $message->attachSigner($smimeSigner); AES256 is required for this project The certi...
tuxedobob
1

votes
0

answer
160

Views

NPM Crypto-js and PHP encryption decryption?

I am using crypto js node package for angular 2 as below: var data = [{id: 1}, {id: 2}] // Encrypt var ciphertext = CryptoJS.AES.encrypt('My Text', 'PasswortPassword'); console.log(ciphertext.toString()); // Decrypt var bytes = CryptoJS.AES.decrypt(ciphertext, 'PasswortPassword'); var decryptedDa...
Abhijit Srivastava
1

votes
0

answer
280

Views

CryptoJS AES Decryption Not Giving original ZIP/EPUB file in react native

I am using CryptoJS to encrypt my epub (or zip) file and decrypt it. I am using react native to create the app. But I don't know why the decrypted file is not the original epub file. The error while opening the decrypted epub file is: Error in opening zip file. And I am using react-native-fetch-blob...
Sagaryal
1

votes
1

answer
338

Views

Android verify signature always returns false

I'm trying to verify some signed content using ECDSA and spongycastle. Here is the code I'm using to generate the keypair with the brainpoolP512t1 ec curve: public static KeyPair getKeyPairbrainpoolP512t1() throws Exception { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance('EC', 'SC...
Joel Pou
1

votes
0

answer
277

Views

Python cryptography saving key

let's say I want to safe a password to a document with my program and encrypt it there. So I simply used: key = Fernet.generate_key() k = Fernet(key) value = k.encrypt(value) and saved this value to a .txt document. When restarting the program, I want to decrypt this encrypted password but I don't...
Snake Shadow
1

votes
1

answer
200

Views

How to backup an Azure SQL database which contains encrypted stored procedures

I have an Azure Powershell script that I have used to create a .bacpac file from an Azure SQL database. It works fine on a basic test database (AdventureWorks), but now that I am trying to use it on a database which contains encrypted stored procedures I am getting the following error: Error SQL715...
user3626232
1

votes
0

answer
897

Views

Change encryption for an existing s3 object

I am looking for a way to change server side encryption of an existing s3 object using AWS SDK. CopyObject seems to be one of the way to change the encryption type (S3 or AWS KMS) . This does provide way to avoid download of object by having same bucket name as source and destination. However it ta...
nsv
1

votes
1

answer
965

Views

PowerShell RSA Decryption

Is there a way to decrypt RSA in PowerShell with the private key passed to the program as a string parameter instead of using a Certificate stored on the machine? Any help welcome, my code is below. Function Decrypt-Asymmetric { [CmdletBinding()] [OutputType([System.String])] param( [Parameter(Posi...
electroman
1

votes
0

answer
994

Views

CryptoJS AES Encryption in React Native

How do I encrypt and decrypt an epub/zip file in react native? I am using react-native-fetch-blob for file streaming. I have also posted this question previously in detail with no result. Here is the link if you need. Also the link of CryptoJS. I was reading the epub/zip file in base64 format which...
Sagaryal
1

votes
0

answer
234

Views

Not able to encrypt data using pgcrypto

Please forgives me if am wrong here as I am new to the field of encryption/decryption and trying to encrypt data using pgcrypto. I have created an Extension in my (PostgreSQL 9.6) PgAdmin4 for pgcrypto. My SpringBoot domain/model class is as follows: @ColumnTransformer( forColumn='first_name', rea...
user143019

View additional questions