Questions tagged [aes]
Advanced Encryption Standard (AES) is a cryptographic block cipher algorithm.
115
questions
1
vote
1
answer
37
views
AES implementation in C
I've implemented AES encryption in C to get more familiar with the language and to understand how encryption works better. I understand this code is unsuitable for actual cryptographic use and I'd ...
2
votes
0
answers
73
views
Rijndael Cipher in C++ (128bit AES)
I am a hobbyist and do not work in the industry but do have an interest in programming an cryptography. I decided to have a go at writing a 128bit implementation of AES in C++. This is my first ever C+...
3
votes
0
answers
29
views
Arduino portenta H7 compatible message encryption and decryption
I am looking to build a message encryption/decription method that would allow messages to be encrypted in a timely fashion on board an Arduino Portenta H7, using as much of the onboard hardware ...
4
votes
5
answers
3k
views
C++ AES Encryption Class
I am working with OpenSSL and writing an AES256 encryption module. My knowledge of cybersecurity is not vast and I would like to know whether there are any obvious holes I'm leaving. The intent is for ...
6
votes
2
answers
1k
views
AES implementation in python
For educational purposes, I have implemented the AES block cipher in python. I decided to follow the interface for block cipher modules as defined in PEP 272. The implementation consists of two python ...
3
votes
2
answers
507
views
Encryption/Decryption between Python and Node JS
I have created a Python & Node JS encryption/decryption AES 256-CFB. The point of this little project is that I will encrypt a special URL with Python covered with base64 & URL encoding and ...
3
votes
1
answer
356
views
AES GCM Encryption Code (Secure Enough or not)
I am creating one library for encryption/decryption using AES-256 with GCM Mode(With Random IV/Random Salt) for every request.
Code I have written is(reference : AES Encryption/Decryption with key) :
<...
2
votes
1
answer
580
views
Proper use of .NET Framework's AesManaged class
My co-worker and I have been tasked with encrypting and decrypting text data using AES256. However both of us feel quite uncomfortable with this as this sits squarely outside our normal problem ...
2
votes
2
answers
3k
views
C# AES Encryption/Decryption or byte[] array with a custom Key/IV
I wanted to create an AES encryption service which will use a custom key/iv.
I want 2 methods: dycrypt/encrypt byte[]
The code works as expected, any remarks/issues?
...
1
vote
2
answers
511
views
Securely implementing AES/RSA hybrid crypto with PyCryptodome
I wondering if anyone could give me feedback on whether or not this is a secure way to implement AES/RSA hybrid encryption and signatures in python 3 with the PyCryptodome module.
All of the encoding ...
2
votes
1
answer
2k
views
Java Cryptography AES/GCM/NoPadding without IV
I'm implementing a PAKE-protocol as a university project and one step of the protocol involves sending encrypted data from a key created via a hash function (I'm using SHA-256). I want to use AES/GCM ...
2
votes
1
answer
4k
views
AES-256-CBC encrypt and decrypt files in Python
I wrote a simple algorithm to encrypt and decrypt files in Python using aes-256-cbc.
...
2
votes
2
answers
544
views
Encrypt data before sending it to server in a way that makes it unreadable to anyone except the user who sent it
I don't have any experience in cryptography and I've written some crypto code that seem to be working, but I'm not sure if it safe and if the tools and methods I used are right.
Objective
Make it ...
2
votes
1
answer
192
views
Validate implementation of ECIES
I've created a basic implementation of ECIES (Elliptic Curve Integrated Encryption Scheme) based on http://www.secg.org/sec1-v2.pdf section 5.1.
...
2
votes
0
answers
79
views
Custom mini cipher
I'm a 14year old and still learning.
I know everyone says "don't roll your own crypto", however I decided I must make my own cipher in javascript as soon as I have enough knowledge.
I started simple ...
2
votes
1
answer
1k
views
Java RSA / AES-GCM encryption utility
I wrote a utility class that has simple methods for:
En/decrypting data with 256-bit AES-GCM using a password
Generating RSA keypair
Saving RSA keypair and storing private key encrypted
En/decrypting ...
7
votes
1
answer
558
views
CypherVault - Command Line Password Manager
I have created a Python 3 password manager for API keys and social media passwords on local storage. The script is 500 lines and PEP8/PYLINT compliant, each definition contains a docstring and the ...
1
vote
2
answers
69
views
Decrypt multiple 10Mb files with defined password
One operation of my Android project is to decrypt one file (chosen in a set of ~30 files for pagination1) of ~10 Mb each and I do this with the following:
...
1
vote
1
answer
608
views
Password hashing (PBKDF2) and RSA encrypt + AES 256 in Java
Here's what I could comprehend in C code:
Generates a key using PBKDF2
Generates an IV which is MD5 of PBKDF2 key in step #1
Does AES-256 encryption on customer-id - which is one of the output
RSA ...
7
votes
1
answer
91
views
File(s) encrypter implementation in python
I'm looking for any feedback in order to improve code styling, performance etc.
Also I want to make sure that the way I've implemented AES here is actually secure
...
3
votes
1
answer
97
views
CliwPw - Yet Another Python3 Password Manager
I wrote a (very) simply Python3 password manager to familiarize myself with Sqlite3, and for fun. I am aware that there are already a variety of password managers out there, but I wanted something ...
4
votes
1
answer
506
views
Python Secure Implementation Of AES-256-CTR Using Cryptography.Hazmat
I've implemented a wrapper for AES 256 CTR mode using the cryptography.hazmat module, I am wondering if there are any vulnerabilities in my implementation, specifically about the counter and its ...
4
votes
2
answers
333
views
C# Cryptography Interface
C# lacks a common off-the-shelf encryption and decryption interface for dependency injection. Nearly every codebase I've ever opened has a couple of extension methods for hashing strings and so on. ...
1
vote
0
answers
722
views
AES encryption/decryption in rust: performance and best practices
I wrote a small rust library available on github that can encrypt/decrypt a 16 bytes block using either 128, 192 or 256 bit passwords. This implementation is tested with the test data provided in the ...
0
votes
0
answers
97
views
Using System.Security.Cryptography.Aes to generate encryption key
Is the below method a safe way of generating a random encryption key to be used with AES (SymmetricAlgorithm) in .NET?
It essentially piggybacks off of the Aes alg to create a random key, trimmed to ...
0
votes
1
answer
99
views
employing AES algorithm in Java
I have employed an AES algorithm in order to encrypt files within a GUI. I was wondering if my algorithm is secure. Could I change anything to improve it? Is my IV secure and is it producing different ...
12
votes
3
answers
9k
views
Python password manager
I am writing a python password manager, and I know there's a lot of scrutiny that goes into storing passwords (don't worry, mine aren't plaintext). I was hoping that this community could help me ...
2
votes
1
answer
291
views
Encrypts using AES GCM for data with limited visibility and long rest
This is the third iteration of my venture on creating an encryption/decryption solution. I asked a question here, which led to this question here, which led to this answer here, which led me to ...
1
vote
1
answer
438
views
Encrypts using AES with random initialization vector meant for data with limited visibility and then long rest
I've done some research, reviewed countless SO questions that appeared similar, leading me to endless rabbit holes.
My solution is working, but I don't like it. I want to create a random IV for AES ...
3
votes
1
answer
1k
views
AES GCM Python implementation
I've recently started looking into encryption in python and I came across with pycryptodome library. I made this simple program that encrypt/decrypt a file using AES-GCM. Could someone take a look if ...
2
votes
1
answer
293
views
AES CTR mode encryption with HMAC
I am trying to implement AES CTR encryption mode with HMAC authentication for messages.
It's encrypting and decrypting fine as long as the key length is 64 bytes, since AES key and HMAC key are ...
1
vote
1
answer
77
views
Rijndael S-box for a string of bits
My question is more of a "can someone give me tips" rather than "can you do it for me"
I have been writing a C code implementation that takes a 32-char String in the form of binary (supposed to act ...
1
vote
1
answer
79
views
Encrypt data to be send from service to service
I'm working with another company in a new application for my company. My job right now is to send on demand to the other company the data that they need, ciphering some of it.
I should point out that ...
2
votes
2
answers
528
views
Basic AES/CBC implementation in Java
A little bit about myself: I am 18 years old, a student living in Germany and currently working on an android app.
I would like if someone has the time to review my code. I am especially interested ...
0
votes
1
answer
45
views
Shell POSIX OpenSSL file decryption script follow-up #3 (final)
From original very simplistic code: Shell POSIX OpenSSL file decryption script
I learned a lot both from the first follow-up review, and the second one as well, many thanks!
I just need one final ...
0
votes
1
answer
58
views
Shell POSIX OpenSSL file decryption script follow-up #2
This question is the second follow-up of: Shell POSIX OpenSSL file decryption script
The first follow-up was: Shell POSIX OpenSSL file decryption script follow-up #1
Both of which have proven very ...
1
vote
2
answers
178
views
Long-term archiving + encrypting shell script
Yesterday, I very quickly, in an hour, wrote the very first version of my long-term archiving + encrypting shell script.
I am aware it may have too many flaws, but none of them really prevent it from ...
3
votes
1
answer
4k
views
Java AES file encryption/decryption
I've written a simple Java class to encrypt and decrypt files using AES. The code works and I'm able to encrypt and decrypt files.
However, I understand this is an easy way of implementing AES and ...
3
votes
2
answers
127
views
JSafebox - Encrypted vault - 2nd drill
I am developing JSafebox, a portable safebox project written in Java.
A first review have been completed here.
The goal is to provide a secured environment where the user can browse encrypted files ...
8
votes
2
answers
232
views
Encrypted safebox
I am developing JSafebox, a portable safebox project written in Java. The goal is to provide a secured environment where the user can browse encrypted files without leaking data on the drive.
The ...
8
votes
3
answers
5k
views
File encryption with password
I would like to have my C# cryptography code reviewed.
I programmed an application that encrypts files with a password (provided by the user). It basically functions as a password manager, on the ...
6
votes
2
answers
4k
views
AES File Encryption / Decryption
I've been looking for a while for the right code to encrypt/decrypt files with AES in vb.net. I created the code below. Is this the right way doing AES encryption/decryption nowadays?
...
7
votes
1
answer
2k
views
Encryption and decryption on streams using AES CBC + HMAC SHA
The goal of the code below is to:
Support authenticated encryption using AES in the CBC mode and using HMAC SHA.
Support encryption and decryption of data of size larger than memory (potentially).
...
4
votes
1
answer
393
views
Plain Java Encryption with Integrity and Authenticity
I spent quite some time and wrote a single class for the purpose of encrypting/decrypting plaintext bytes with a passphrase. The goal is to not have any further dependencies apart from ...
2
votes
1
answer
5k
views
AES Encryption/Decryption with key
Is this the best way to encrypt/decrypt data?
And Is it good to store Generated InitVector and CipherText in database as Base64 String which is converted from byte[]?
...
6
votes
3
answers
3k
views
Java AES CBC encryption/decryption
I've looked at multiple examples of Java AES CBC mode encryption but I couldn't find a proper solution that's safe to use. I ended up writing my own utility class. My questions is: Is this code safe ...
1
vote
1
answer
129
views
Shell POSIX OpenSSL file decryption script follow-up #1
This question is the first follow-up of: Shell POSIX OpenSSL file decryption script
Please read it before you continue reading this. Thank you.
I only have one new problem solved and I would like ...
6
votes
1
answer
870
views
Shell POSIX OpenSSL file decryption script
Tonight, I tried to write a Bash OpenSSL file decryption script. Encryption script will follow in highly similar manner, so I think it's not necessary now.
Let's suppose we have an encrypted large ...
4
votes
1
answer
493
views
PyCrypto AES-CFB with SCrypt and HMAC
I am brushing up on my Python, and since I would like to learn a bit about encryption, I figured I would give PyCrypto a try. I obviously wouldn't implement encryption in any production environment, ...
3
votes
0
answers
2k
views
File encryption/decryption in Python
How secure is this Python code? Can there be any attacks on this encryption? I tried to follow all the rules that I could find: KDF instead of hash, EAX (authenticated encryption mode) and other.
<...