You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another case is we can have two functions, sha256_encrypt or sha256_decrypt. sha256 with encrypt and decrypt is a bit risky because if by chance we pass incorrect value to encrypt or decrypt then it can mess things up.
sha256_encrypt and sha256_decrypt.
For ChaCha20,
def chacha20(key, nonce, counter):
...
or,
def chacha20(key):
...
# nonce and counter will be generated here
Fixing bugs - that is easy, doesn't involve
Adding a new feature - a cryptographic algorithm, a sorting algorithm - figure out how the function signature would look like. sort(list), sort(array), sort(set), sort(iterator), sort(list, reverse=True),
Hi, I would like to work on this @czgdp1807. I presume crypto should come under string algorithms. I'll work on implementing SHA256 and ChaCha20-Poly1305.
Also I'm not sure how sha256 can be decrypted since its a hashing algorithm.
Let's create a fake example (assume that cryptographic algorithms are already there in pydatastructs)
Another example,
Another case is we can have two functions,
sha256_encrypt
orsha256_decrypt
.sha256
withencrypt
anddecrypt
is a bit risky because if by chance we pass incorrect value toencrypt
ordecrypt
then it can mess things up.sha256_encrypt
andsha256_decrypt
.For ChaCha20,
or,
sort(list)
,sort(array)
,sort(set)
,sort(iterator)
,sort(list, reverse=True)
,@Susmita331
The text was updated successfully, but these errors were encountered: