751 questions
0 votes
1 answer
159 views
Why do I need an IvParameter and how do I implement it?
I'm trying to write a java program that encrypts and decrypts a byte array of text based on a password, but when decrypting, it returns an error Error message: Exception in thread "main" ...
0 votes
0 answers
37 views
How to encrypt file with ClearKey for Encrypted Media Extensions API?
I am playing around with the Encrypted Media Extensions API a bit and wondering about ClearKey encryption. As I understand it, the target file, or segments of it are encrypted using a symmetric key ...
1 vote
0 answers
98 views
ZIP with password protection scheme validation
I'm using ZIP format for backups of an app. Size is probably from 10Mb to 2Gb. Amount of files inside might be up to 10k. I wanted to add a password protection but found out that both ZypCrypto (...
1 vote
0 answers
139 views
SecureBlackBox: decode AES-256 data
I am using SerureBlackBox and I need to decode text. In the function below, when I do: Crypto.Decrypt(@fDataBytes[0], Length(fDataBytes), @fDecryptedData[0], OutSize); it throws an error: Invalid ...
0 votes
1 answer
70 views
Where to implement the encryption on access token in clean architecture of android?
I implemented the Symmetric encryption of access token using Android KeyStore, but where I must do encryption process Repository class where I receive data from Remote. View Model class after passing ...
0 votes
0 answers
60 views
Handling Short Plaintexts in Format-Preserving Encryption: A Challenge with FF3 Algorithm Minimum Length Requirements [duplicate]
I've developed a Python program that performs format-preserving encryption (FPE) for all data types, including numeric, alphanumeric, and alphabetic. It ensures that the data type (alpha or numeric) ...
1 vote
2 answers
176 views
Cannot decrypt with node.js encryptedstring using openssl in bash (symmetric encryption)
I'm symmetrically encrypting data using node.js code, that I'll decrypt using the openssl command in a bash script. I have encrypt/decrypt functions in both environments that work as expected, but ...
0 votes
0 answers
42 views
Data Integrity S3 During Transit for Large File
I'm new to encryption, so my question might seem basic. Despite reading multiple articles, I'm still unsure if I fully understand. I have an S3 bucket, bucket_a, which will be used by different AWS ...
1 vote
0 answers
86 views
JsonApiDotNetCore and filtering using a udf
I am using JsonApiDotNetCore, .NET Core, and EF Core on SQL Server and creating a REST project implementing the Json API standard. I have plenty of resources (models) but one of them has some fields ...
0 votes
1 answer
524 views
How to encrypt with preserving the format alphanumeric texts
How to do FPE (format preserving encryption) on a text like 'A123456' , if the encryption preserved the format I should get a string with a char than 6 digits , for example 'Z655432' , I used the ...
1 vote
0 answers
123 views
Invalid Token error when using Fernet(Python)
I'm writing a simple encryption/encoding program using base64 and fernet, but when decrypting fernet keeps raising an Invalid Token error. Here is the code: from cryptography.fernet import Fernet ...
0 votes
1 answer
4k views
java.security.cert.CertPathValidatorException: Algorithm constraints check failed on signature algorithm: SHA1withRSA
Need to set useSSL=true for mysql cloud connection for jdbc connect string but getting this error. SHA1withRSA has been restricted in our environment. How do I resolve this java.security.cert....
0 votes
0 answers
68 views
How do I use Rfc2898DeriveBytes in a symmetric algorithm?
I have created a stream that takes a plaintext input stream, and it's read method will return cypertext based on the input stream; I've been reading that it is recommended to use the ...
0 votes
0 answers
66 views
Having a hard time displaying output from an API
I'm learning how to use openssl and learn more about it. I wrote a very short line of codes which AES encrypts plaintext and display the output as ciphered text. I had no idea how to display its ...
0 votes
0 answers
139 views
T-SQL ENCRYPTBYPASSPHRASE key derivation procedure [duplicate]
ENCRYPTBYPASSPHRASE in T-SQL takes a passphrase as a parameter. I'm wanting to encrypt some data in the same way outside of SQL server, in such a way as said data may be decrypted using the ...