Questions tagged [encryption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
21 views

Bash script for pull-mode backups via restic's rest-server

I wrote the following Bash scripts to make pull-mode backups with restic, a backup solution written in Golang, similar to Borg Backup. The main use case for this script is pulling backups into a ...
1
vote
1answer
33 views

Notes Saver Application in tkinter python

I completed my Notes Saver project in python tkinter and now I want to get it reviewed. I want to how I could - Improve my hashing system. Improve my notes encryption system. Improve the UX. Improve ...
1
vote
1answer
67 views

Manual authenticated encryption on .NET Core

I've been tasked with creating some way to encrypt arbitrary text for a .NET Core app, with the following requirements: Messages will be between 10 bytes and 1 kB. Boss doesn't want me to use AES-GCM ...
3
votes
2answers
133 views

Is this a true implementation of XOR in python?

I have implemented a simple XOR encryption in Python. However I am not sure this is the right implementation or it can be further improved ? ...
2
votes
1answer
75 views

encrypt files using a variant of Vernam Cipher in C language

I'm coding this program that allows you to encrypt files using vernam cipher in C language. I would be glad if you could inspect my code and tell me if I can make some improvements to it or if there ...
1
vote
0answers
74 views

Python script to compress and encrypt a list of files/directories (tar + gpg)

I've tried, as practise, to write a Python 3 script which takes a list of paths to files/directories and compresses them with tar, before encrypting the resultant ...
1
vote
1answer
36 views

tokenize char array with PolarSSL library

I'm trying to perform a decryption operation using RSA. I'm using the PolarSSl library. I have a char array key[] that contains RSA private key like the following, <...
2
votes
0answers
31 views

Javascript client storage with the same persistence as a session cookie

I want to implement a client storage mechanism that is as persistent as a session cookie but with more storage capacity. I am doing this by encrypting the data before storing it and saving the keys in ...
1
vote
1answer
90 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 ...
3
votes
2answers
274 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
273 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
89 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
265 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
120 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
842 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
217 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
1k 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
446 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
236 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 ...
3
votes
2answers
2k 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
13 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
78 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
78 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
185 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
77 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 ...