Questions tagged [cryptography]
Questions relating to cryptographic topics such as encryption/decryption and hashing. (Not for use with trivial ciphers.)
                508 questions
            
            
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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.
<...
                
            
       
        
            
                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):
...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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: ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
         
         
         
         
         
         
        