Skip to main content

Questions tagged [cryptography]

Questions relating to cryptographic topics such as encryption/decryption and hashing. (Not for use with trivial ciphers.)

6 votes
3 answers
819 views

Linux file encryption using GPG key

In the below script I am using some arrays, and other Bash stuff, but I have made a minimal working example for you, where you cannot see those things. Anyway, I am interested in a review of the ...
Vlastimil Burián's user avatar
2 votes
2 answers
180 views

Convert binary string to text base64 [closed]

I have a dictionary with a lot of symbols, each of which is encoded in a huffman binary string. Example: Symbol Huffman Code you 010 shall 0111 not 00111 pass 00001 ... ... Therefore I encode the ...
Benzio's user avatar
  • 131
7 votes
1 answer
917 views

C++ program to encrypt hardcoded text

This code takes in a hardcoded input buffer, maximum 64 chars, encrypts, decrypts and outputs decrypted buffer using AES CBC mechanism. Entered password is converted to a SHA256 digest and copied into ...
Abel Tom's user avatar
  • 173
4 votes
1 answer
151 views

Generating Time-based One Time Passcode

Following Wikipedia: Time-based one-time password and Wikipedia: HMAC-based one-time password, is this Rust implementation of the TOTP/HOTP algorithm correct? As far as I can see, this matches the ...
Michael's user avatar
  • 140
6 votes
1 answer
222 views

Four layer encryption implementation

Would anyone care to elaborate my approach to a multi-layer encryption scheme. It encrypts with four layers and gets shuffled with a random key as well. This is used for a password vault application. <...
bismofunyuns's user avatar
5 votes
1 answer
161 views

Cryptographically secure random int in range

I tried to make a cryptographically secure random int in range generator for javascript, practically the javascript equivalent of php's random_int(min,max): ...
hanshenrik's user avatar
3 votes
1 answer
258 views

A home server template to securely access personal apps

I have built a Node.js program called serverserver, and it creates a server that you can access remotely on your phone. When you start the program, it prompts you to visit your public IP address. You ...
Cannabijoy's user avatar
6 votes
5 answers
1k views

RSA encryption and decryption: performance, security, and best practises

I'm working on a RSA encryption and decryption project in python. I've written the following code, but I'm looking for suggest on how to improve it. Specifically, I'm interested in optimizing ...
Thanh SkyDev's user avatar
12 votes
4 answers
3k views

Python secrets command-line tool

I'm building a command-line tool that lets you use Python's secrets module. Here are some commands you can run with this tool: ...
code writer 3000's user avatar
1 vote
3 answers
175 views

Sign a message with a Bitcoin private key

I am writing code in C, and I need to do various operations with Bitcoin, from generating key pairs, to sign messages to post transactions. I found libraries for C++, but nothing in C that does all ...
capodieci's user avatar
2 votes
2 answers
267 views

Encrypt a String using AES in CBC mode

Your opinion interests me regarding this program. This program encrypts a text message using the AES256 algorithm and CBC. It allows the creation of an encrypted message that contains: The salt used ...
b210205's user avatar
  • 33
3 votes
2 answers
297 views

Encrypting large files using RSA and AES-256-CBC-HMAC-SHA384

I developed an application that stores large files. Those files are stored in plain text. Now the project owner wants those files be encrypted on storage, he wants confidentiality, integrity, and ...
Jesús López's user avatar
11 votes
3 answers
2k views

SHA-256 Implementation

I've been working on a byte-oriented SHA-256 implementation for educational purposes. I then tested it using the NIST CAVP tests found here. All tests pass but I would appreciate some feedback from a ...
dRevan25's user avatar
  • 113
3 votes
1 answer
170 views

Encrypted websocket chat using AES (EAX) and RSA for signing

For learning purposes and because it really interests me I am trying to get a better understanding of cryptography by trying to make my own basic secure chat-application. I posted a first version of ...
O'Niel's user avatar
  • 341
4 votes
1 answer
294 views

Encryption implementation for websocket chat (RSA + AES)

For learning purposes I am trying to make a encrypted chat in Python using Websockets. I am using AES and RSA to make it safe. The idea of the chat is that it's a group-chat. Users can join a chat by ...
O'Niel's user avatar
  • 341

15 30 50 per page
1
2 3 4 5
34