All Questions
Tagged with cryptography random
15
questions
3
votes
2
answers
108
views
Simple Password Generator Feedback
This is my first major project in F#, looking for any critique on how I can make it more standard or more concise.
Some things I feel like I could have done better are the command flag parsing and the ...
4
votes
1
answer
111
views
PRBHA-10: A hashing algorithm in Python
So I've been working on a simple little hashing algorithm for Python that I like to call PRBHA-10 for short, or Pseudo-Random-Based Hash Algorithm. This is a hash algorithm in Python that is meant to ...
5
votes
1
answer
72
views
High performance wrapper for CSPRNG arc4random(3)
This function is a wrapper for arc4random(3), a cryptographic pseudo-random number generator on macOS and BSDs, but you can also get it by installing ...
2
votes
2
answers
81
views
C# Security Module for generating secure hashes
Any pointers on the level of security this hashing function perform at?
I have never had to really write my own modules for security before.
...
6
votes
1
answer
104
views
Node secure randomness implementations
I'm trying to generate secure randomness in Node as a personal challenge. I was wondering if the following implementations are correctly random or they have some flaws.
...
2
votes
1
answer
86
views
Generating user ids on a random forum website
Will this code be random enough to generate user ids for a website where people can create posts? Would there be a better method other than running this function and validating it doesn't exist in the ...
10
votes
3
answers
8k
views
Generate cryptographically secure random numbers in a specific range
A project I'm working on requires generating a random number of \$N\$ length to a very high degree of fair distribution between digits \$[0, 9]\$.
That said, I used the ...
4
votes
2
answers
2k
views
Simple hashing and salting algorithm
I have devised what I feel to be a simple hash/salting algo for Java, and am looking for some feedback from people more skilled than myself. Please find below my code;
...
4
votes
2
answers
10k
views
Simple stream cipher encryption/decryption function
This is a Python implementation of a stream cipher encryption algorithm. This implementation originates from the one displayed on the TI-Basic wikidot cryptography page.
I am well aware that this code ...
2
votes
2
answers
4k
views
Encrypt string using One Time Pad
I'm trying to make it so that a string generates n keys, and all of those are required to recover the original string. For this, I generate n-1 random strings, XOR them all together with the original ...
3
votes
1
answer
557
views
Secure random number generator
I just wrote this function and I was curious if anyone could find any flaws in it.
It look pretty secure to me but I just want to make sure since I'm no cryptography expert.
...
3
votes
2
answers
628
views
Change random methods without losing too much performance
I have a class in C# that uses a Random object to get a list of numbers randomized from an array of 1-25. Now what I need is improve this method to use ...
3
votes
1
answer
2k
views
Ensuring client IDs are unique
I'm writing a node.js application that involves handling clients based on their ID without any real way of confirming that the ID a client says it has is its actual ID. That is, it's possible for a ...
10
votes
2
answers
664
views
Can this secure, random generator be improved?
This random generator uses cryptographically secure numbers/chars instead of Math.random(). The Javascript code with jQuery works well but I affect clean code ;) It ...
2
votes
2
answers
959
views
1024 bit key generation in php
I want to use this function to store 1024 bit keys in my Mysql database. If you call generateKey(128), you'll get a 128 byte string, same as 1024 bit string. I want to know if there is something wrong ...