Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FIT-DNU/Cryptography-and-Cyber-Security
/ functions
Functions
112 in github.com/FIT-DNU/Cryptography-and-Cyber-Security
⨍
Functions
112
◇
Types & classes
0
↳
Endpoints
6
↓ 4 callers
Function
modExp
Elgamal.cpp:8
↓ 4 callers
Function
modExp
namtq/Elgamal.cpp:8
↓ 3 callers
Function
AddRoundKey
Serves as the initial round during encryption * AddRoundKey is simply an XOR of a 128-bit block with the 128-bit key. */
AES-encrypt.cpp:17
↓ 3 callers
Function
SubRoundKey
Used in Round() and serves as the final round during decryption * SubRoundKey is simply an XOR of a 128-bit block with the 128-bit key. * So basic
AES-decrypt.cpp:17
↓ 2 callers
Function
DES
Implementing the algorithm
Dencrypt_DES.cpp:131
↓ 2 callers
Function
KeyExpansion
The main KeyExpansion function * Generates additional keys using the original key * Total of 11 128-bit keys generated, including the original *
structures.h:219
↓ 2 callers
Function
ShiftRows
Shift left, adds diffusion
AES-encrypt.cpp:33
↓ 2 callers
Function
ShiftRows
Shifts rows right (rather than left) for decryption
AES-decrypt.cpp:55
↓ 2 callers
Function
SubBytes
Perform substitution to each of the 16 bytes * Uses S-box as lookup table */
AES-encrypt.cpp:26
↓ 2 callers
Function
SubBytes
Perform substitution to each of the 16 bytes * Uses inverse S-box as lookup table */
AES-decrypt.cpp:90
↓ 2 callers
Function
Xor
Function to compute xor between two strings
Encrypt_DES.cpp:61
↓ 2 callers
Function
Xor
Function to compute xor between two strings
Dencrypt_DES.cpp:61
↓ 2 callers
Function
convertBinaryToDecimal
Function to convert a number in binary to decimal
Encrypt_DES.cpp:24
↓ 2 callers
Function
convertBinaryToDecimal
Function to convert a number in binary to decimal
Dencrypt_DES.cpp:24
↓ 2 callers
Function
isValidBinaryString
Hàm kiểm tra chuỗi nhị phân hợp lệ
nhannv/DES.cpp:161
↓ 2 callers
Function
pickrandomprime
picking a random prime number and erasing that prime number from list because p!=q
RSA Msg 2.cpp:31
↓ 2 callers
Function
power
Function to compute base^expo mod m
namtq/RSA.cpp:8
↓ 2 callers
Function
shiftLeft
namtq/MaKhoi.cpp:15
↓ 2 callers
Function
shift_left_once
Function to do a circular left shift by 1
Encrypt_DES.cpp:39
↓ 2 callers
Function
shift_left_once
Function to do a circular left shift by 1
Dencrypt_DES.cpp:39
↓ 2 callers
Function
shift_left_twice
Function to do a circular left shift by 2
Encrypt_DES.cpp:48
↓ 2 callers
Function
shift_left_twice
Function to do a circular left shift by 2
Dencrypt_DES.cpp:48
↓ 2 callers
Function
xorBinary
namtq/MaDong.cpp:11
↓ 2 callers
Function
xorBlock
namtq/MaKhoi.cpp:7
↓ 1 callers
Function
AESDecrypt
The AES decryption function * Organizes all the decryption steps into one function */
AES-decrypt.cpp:117
↓ 1 callers
Function
AESEncrypt
The AES encryption function * Organizes the confusion and diffusion steps into one function */
AES-encrypt.cpp:116
↓ 1 callers
Function
DES
Implementing the algorithm
Encrypt_DES.cpp:131
↓ 1 callers
Function
Decryption
decryption function
Transposition_Cipher.cpp:46
↓ 1 callers
Function
Encryption
Encription function
Transposition_Cipher.cpp:7
↓ 1 callers
Function
FinalRound
Same as Round() except it doesn't mix columns
AES-encrypt.cpp:107
↓ 1 callers
Function
InitialRound
Same as Round() but no InverseMixColumns
AES-decrypt.cpp:108
↓ 1 callers
Function
InverseMixColumns
InverseMixColumns uses mul9, mul11, mul13, mul14 look-up tables * Unmixes the columns by reversing the effect of MixColumns in encryption */
AES-decrypt.cpp:26
↓ 1 callers
Function
KeyExpansionCore
Auxiliary function for KeyExpansion
structures.h:196
↓ 1 callers
Function
MixColumns
MixColumns uses mul2, mul3 look-up tables * Source of diffusion */
AES-encrypt.cpp:68
↓ 1 callers
Function
Round
Each round operates on 128 bits at a time * The number of rounds is defined in AESEncrypt() */
AES-encrypt.cpp:99
↓ 1 callers
Function
Round
Each round operates on 128 bits at a time * The number of rounds is defined in AESDecrypt() * Not surprisingly, the steps are the encryption steps
AES-decrypt.cpp:100
↓ 1 callers
Function
calculate_entropy
calculate entropy
calculate_Entropy.cpp:8
↓ 1 callers
Function
convertDecimalToBinary
Function to convert a number in decimal to binary
Encrypt_DES.cpp:11
↓ 1 callers
Function
convertDecimalToBinary
Function to convert a number in decimal to binary
Dencrypt_DES.cpp:11
↓ 1 callers
Function
decBlock
Feistel Cipher.cpp:63
↓ 1 callers
Function
decipher
Feistel Cipher.cpp:75
↓ 1 callers
Function
decoder
RSA Msg 2.cpp:97
↓ 1 callers
Function
decrypt
to decrypt the given number
RSA Msg 2.cpp:76
↓ 1 callers
Function
decrypt
Elgamal.cpp:56
↓ 1 callers
Function
decrypt
namtq/Elgamal.cpp:56
↓ 1 callers
Function
decrypt
Decrypt message using private key (d, n)
namtq/RSA.cpp:55
↓ 1 callers
Function
desEncrypt
Hàm mã hóa DES
nhannv/DES.cpp:128
↓ 1 callers
Function
encBlock
Feistel Cipher.cpp:7
↓ 1 callers
Function
encipher
Feistel Cipher.cpp:20
↓ 1 callers
Function
encoder
first converting each character to its ASCII value and then encoding it then decoding the number to get the ASCII and converting it to character
RSA Msg 2.cpp:89
↓ 1 callers
Function
encrypt
This function receives text and shift and returns the encrypted text
Caesa Cipher.cpp:7
↓ 1 callers
Function
encrypt
This function receives text and shift and returns the encrypted text
Caesar-Cipher.cpp:7
↓ 1 callers
Function
encrypt
to encrypt the given number
RSA Msg 2.cpp:65
↓ 1 callers
Function
encrypt
Elgamal.cpp:50
↓ 1 callers
Function
encrypt
namtq/Elgamal.cpp:50
↓ 1 callers
Function
encrypt
Encrypt message using public key (e, n)
namtq/RSA.cpp:50
↓ 1 callers
Function
expansion
Hàm mở rộng E
nhannv/DES.cpp:78
↓ 1 callers
Function
extendedGCD
EuclideExtend.cpp:4
↓ 1 callers
Function
extendedGCD
namtq/EuclideExtend.cpp:4
↓ 1 callers
Function
findGCD
Function to return gcd of a and b
GCD.cpp:8
↓ 1 callers
Function
gcd
Returns gcd of a and b
RSA Msg 1.cpp:9
↓ 1 callers
Function
generateKey
Generate random key
VernamCipher.cpp:13
↓ 1 callers
Function
generateKeys
Elgamal.cpp:38
↓ 1 callers
Function
generateKeys
namtq/Elgamal.cpp:38
↓ 1 callers
Function
generateKeys
RSA Key Generation
namtq/RSA.cpp:32
↓ 1 callers
Function
generateSubkeys
Hàm tạo subkey
nhannv/DES.cpp:105
↓ 1 callers
Function
generate_keys
Function to generate the 16 keys.
Encrypt_DES.cpp:75
↓ 1 callers
Function
generate_keys
Function to generate the 16 keys.
Dencrypt_DES.cpp:75
↓ 1 callers
Function
initialPermutation
Hàm hoán vị
nhannv/DES.cpp:71
↓ 1 callers
Function
isPrime
Hàm kiểm tra số nguyên tố
100Primes.cpp:7
↓ 1 callers
Function
isTwoDecimalPlaces
EntropyCal.cpp:11
↓ 1 callers
Function
isTwoDecimalPlaces
namtq/EntropyCal.cpp:11
↓ 1 callers
Function
log2_custom
EntropyCal.cpp:7
↓ 1 callers
Function
log2_custom
namtq/EntropyCal.cpp:7
↓ 1 callers
Function
modInverse
Elgamal.cpp:20
↓ 1 callers
Function
modInverse
namtq/Elgamal.cpp:20
↓ 1 callers
Function
modInverse
Function to find modular inverse of e modulo phi(n) Here we are calculating phi(n) using Hit and Trial Method but we can optimize it using Extended Eu
namtq/RSA.cpp:23
↓ 1 callers
Function
permutation
Hàm hoán vị P
nhannv/DES.cpp:98
↓ 1 callers
Function
primefiller
we will run the function only once to fill the set of prime numbers
RSA Msg 2.cpp:12
↓ 1 callers
Function
sbox
Hàm S-box
nhannv/DES.cpp:85
↓ 1 callers
Function
setkeys
RSA Msg 2.cpp:41
Function
add_employee
()
DB-Cryptography/app.py:68
Function
dashboard
()
DB-Cryptography/app.py:46
Function
delete_employee
(id)
DB-Cryptography/app.py:120
Function
edit_employee
(id)
DB-Cryptography/app.py:88
Function
login
()
DB-Cryptography/app.py:17
Function
logout
()
DB-Cryptography/app.py:40
Function
main
Driver program to test the above function
Caesa Cipher.cpp:28
Function
main
Encrypt_DES.cpp:276
Function
main
calculate_Entropy.cpp:18
Function
main
100Primes.cpp:23
Function
main
isPrime.cpp:6
Function
main
EntropyCal.cpp:16
Function
main
Feistel Cipher.cpp:119
Function
main
Transposition_Cipher.cpp:78
Function
main
AES-encrypt.cpp:139
Function
main
Driver program to test the above function
Caesar-Cipher.cpp:28
Function
main
VernamCipher.cpp:21
Function
main
Code to demonstrate RSA algorithm
RSA Msg 1.cpp:22
Function
main
GCD.cpp:14
next →
1–100 of 112, ranked by callers