Questions tagged [encryption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
84 views

A simple encryption scheme 2.0

This is a follow up to my previous post. I've used a BCrypt library to create a key from the passed in password. I then separated out the salt from the hash. The encryption is done using the salt ...
1
vote
2answers
89 views

.Net core string symmetric encryption

I need to store sensitive strings in DB, so decided to encrypt it in a DB and decrypt it at the application layer. And noticed that it is not so easy to find ready to use an example. Please check my ...
1
vote
1answer
61 views

Encrypted text - C# SHA256, implementation

I have a C# application which needs to encrypt string and save the key as a hash. The key is saved as a hash to check the right key has been input before trying to decrypt the message. First, I have ...
2
votes
2answers
80 views

Encrypting/decrypting messages in java

I am trying to implement message encryption/decryption with password in java. Here is the code I'm using: ...
2
votes
1answer
138 views

JavaScript: proper user of SJCL encryption in Google Apps Script

I'm using the minified version of SJCL to encrypt the backup files requested by the users. It is in a Google Apps Script add-on for Google Sheets. I'm mostly concerned with correct use, exception ...
3
votes
2answers
101 views

Correct implementation of encryption function

I wrote a simple encryption function that uses argon2d as the KDF and XChaCha20-Poly1305 as the AEAD. Since it is very easy to not get things right when dealing with encryption, I would appreciate if ...
5
votes
4answers
718 views

Vigenere cipher C program

I implemented a Vigenere cipher that preserves case and can also decrypt if you pass the -d argument. Usage is ...
4
votes
3answers
115 views

Substitution Cipher in C

I was directed here from Stack Overflow. I completed my recent programming assignment for developing a substitution cipher in C. Below is what I came up with after reading many tutorials, googling ...
6
votes
2answers
879 views

Python 3 Vigenere Cipher

I'm still fairly new to Python and I'm trying to see if I've efficiently used modules, functions, etc or if there's another/easier way to do something. This Python 3 Vigenere Cipher is a rebuild of a ...
3
votes
1answer
431 views

Very simple encryption API

I need an encryption system with a super simple API. I'd prefer something as simple as the following. The output should also be browser-friendly and ideally url-friendly. ...
3
votes
2answers
146 views

Encrypts a message using the ADFGVX cipher

This is a Java program I implemented to encrypt a string using the ADVGVX cipher. It takes in the message, the passphrase used to generate the Polybius square, and keyword for the transposition part ...
2
votes
2answers
1k 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
0answers
11 views

Compressing and encrypting file systems for backups

I am currently backing up remote OS' while preserving the permissions using rsync: rsync -aAX --numeric-ids --delete ... root@X.X.X.X:/ /backup/server/ Now I ...
6
votes
2answers
3k views

Xor encryption in C

Based on this code found on github and the advice given to me on stackoverflow I made this code for the xor in c. ...
3
votes
1answer
75 views

Encrypted Online Rock Paper Scissors Game

I made an RPS Game with python with the Crypto and socket modules. I would like you to look at the code and tell me if anything ...
4
votes
2answers
77 views

Encrypting file from source AEAD

I am trying to encrypt/decrypt file using source code directly. The issue is how to properly do it after reading the file. ...
4
votes
1answer
181 views

Mail Crypt Library for encrypted email

(Last Post) Mail Crypt CLI encrypted email wrapper for Gmail I've spent the past few days re-writing the logic of my program as a library to improve the structure and readability of my code. The idea ...
3
votes
1answer
70 views

Grokking the basics of BlockChain with Python

As I was streaming I had a brilliant visitor suggest we write a blockchain in Python. So we did. Note that there is no validation or voting simulated here. Here's the results, in ...