Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daniellerch/stegolab
/ functions
Functions
190 in github.com/daniellerch/stegolab
⨍
Functions
190
◇
Types & classes
10
↓ 19 callers
Method
load
(self, path)
pyEC/ensemble.py:99
↓ 12 callers
Method
save
(self, path)
pyEC/ensemble.py:96
↓ 9 callers
Method
symmetrize_display
Converts the canonical representation [0, p-1] to the symmetric representation [-(p-1)/2, (p-1)/2] for display purposes.
watermarking/H[i]dden.py:216
↓ 8 callers
Method
_mod
Reduces the Gaussian integer (a + bi) modulo p to the [0, p-1] range.
watermarking/H[i]dden.py:57
↓ 7 callers
Method
_mul_mod
Performs Gaussian multiplication (self * other) and reduces modulo p. (a1 + b1i) * (a2 + b2i) = (a1*a2 - b1*b2) + (a1*b2 + a2*b1)i
watermarking/H[i]dden.py:76
↓ 6 callers
Method
__pow__
Performs Gaussian modular exponentiation: (a + bi)^e mod p. Uses the efficient Square-and-Multiply algorithm.
watermarking/H[i]dden.py:95
↓ 6 callers
Function
test_code
(code_type, code, payload)
codes/test_codes.py:37
↓ 5 callers
Function
H_i
(dct, k, l, i)
calibration/calibration.py:39
↓ 4 callers
Method
_bytes_to_ternary
(self, m)
codes/ternary_random_codes.py:80
↓ 4 callers
Method
_bytes_to_ternary
(self, m)
codes/ternary_hamming_codes.py:67
↓ 4 callers
Function
decrypt
Decrypts the Gaussian ElGamal ciphertext (nu1, nu2) using the private key 'a'. Message: mu = nu2 * tau^-1 mod p, where tau = nu1^a mod p
watermarking/H[i]dden.py:394
↓ 4 callers
Function
encrypt
Encrypts a Gaussian integer message (mu) using the Gaussian ElGamal scheme. Ciphertext: (nu1, nu2)
watermarking/H[i]dden.py:365
↓ 4 callers
Function
hide
(cover_path, stego_path, payload)
J-RBV/j-rbv-color.py:242
↓ 4 callers
Function
load_images
(path_pattern)
cnn/stego_cnn_xu.py:43
↓ 3 callers
Method
_ternary_to_bytes
(self, m)
codes/ternary_random_codes.py:96
↓ 3 callers
Method
_ternary_to_bytes
(self, m)
codes/ternary_hamming_codes.py:83
↓ 3 callers
Function
beta_kl
(dct_0, dct_b, k, l)
calibration/calibration.py:43
↓ 3 callers
Method
divide_by_gaussian
Performs standard (non-modular) Gaussian division: self / other. Returns: - A GaussianInteger if the division results in a
watermarking/H[i]dden.py:173
↓ 3 callers
Function
hide
(cover_path, stego_path, payload)
S-UNIWARD/s-uniward-color.py:173
↓ 3 callers
Function
hide
(cover_path, stego_path, payload)
J-UNIWARD/j-uniwardfast-color.py:233
↓ 3 callers
Function
hide
(cover_path, stego_path, payload)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:307
↓ 3 callers
Function
hide
(cover_path, stego_path, payload)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:275
↓ 3 callers
Function
uncompress
(coeffs, quant)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:98
↓ 3 callers
Function
uncompress
(coeffs, quant)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:95
↓ 2 callers
Method
_bits_to_bytes
(self, m)
codes/hamming_codes.py:74
↓ 2 callers
Method
_bits_to_bytes
(self, m)
codes/random_codes.py:88
↓ 2 callers
Method
_bytes_to_bits
(self, m)
codes/hamming_codes.py:65
↓ 2 callers
Method
_bytes_to_bits
(self, m)
codes/random_codes.py:79
↓ 2 callers
Method
_embed
(self, c, m)
codes/hamming_codes.py:93
↓ 2 callers
Method
_embed
(self, c, m)
codes/ternary_random_codes.py:126
↓ 2 callers
Method
_embed
(self, c, m)
codes/ternary_hamming_codes.py:113
↓ 2 callers
Method
_embed
(self, c, m)
codes/random_codes.py:107
↓ 2 callers
Method
_extract
(self, s)
codes/hamming_codes.py:166
↓ 2 callers
Method
_extract
(self, s)
codes/ternary_random_codes.py:212
↓ 2 callers
Method
_extract
(self, s)
codes/ternary_hamming_codes.py:205
↓ 2 callers
Method
_extract
(self, s)
codes/random_codes.py:177
↓ 2 callers
Method
_n_ary
(self, n)
codes/hamming_codes.py:43
↓ 2 callers
Method
_n_ary
(self, n)
codes/wet_paper_codes.py:44
↓ 2 callers
Function
_power
Computes (a^d) % n using modular exponentiation.
watermarking/H[i]dden.py:243
↓ 2 callers
Function
ciphertext_multiply
Multiplies two ciphertexts component-wise (nu1, nu2) * (nu1', nu2') mod p.
watermarking/H[i]dden.py:414
↓ 2 callers
Method
embed
(self, cover, message)
codes/ternary_random_codes.py:167
↓ 2 callers
Method
extract
(self, stego)
codes/ternary_random_codes.py:226
↓ 2 callers
Function
hide
(cover_path, stego_path, payload)
J-UNIWARD/j-uniward-color.py:199
↓ 2 callers
Function
hide
(cover_path, stego_path, payload)
J-UNIWARD/j-uniward.py:110
↓ 2 callers
Function
hide
(cover_path, stego_path, payload, T=5)
HILL/HILL.py:116
↓ 2 callers
Function
invDCT
(m)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:67
↓ 2 callers
Function
invDCT
(m)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:64
↓ 2 callers
Function
miller_rabin
Performs the Miller-Rabin primality test.
watermarking/H[i]dden.py:247
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
S-UNIWARD/s-uniward-color.py:54
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-RBV/j-rbv-color.py:69
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-UNIWARD/j-uniward-color.py:55
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-UNIWARD/j-uniwardfast-color.py:73
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-UNIWARD/j-uniward.py:52
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:130
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:115
↓ 2 callers
Function
ternary_entropyf
(pP1, pM1)
HILL/HILL.py:57
↓ 1 callers
Function
DCT
(m)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:82
↓ 1 callers
Function
D_BLK_CC
(c, w_r)
watermarking/D_BLK_CC.py:46
↓ 1 callers
Function
D_LC
(c, w_r)
watermarking/D_LC.py:47
↓ 1 callers
Function
D_SIMPLE_8
(c, w_ri)
watermarking/D_SIMPLE_8.py:45
↓ 1 callers
Function
D_TRELLIS_8
(c, passw)
watermarking/D_TRELLIS_8.py:58
↓ 1 callers
Function
E_BLIND
(c_o, w_r, m)
watermarking/E_BLIND.py:48
↓ 1 callers
Function
E_BLK_BLIND
(c_o, w_r, m)
watermarking/E_BLK_BLIND.py:47
↓ 1 callers
Function
E_FIXED_LC
(c_o, w_r, m)
watermarking/E_FIXED_LC.py:49
↓ 1 callers
Function
E_SIMPLE_8
(c_o, w_ri, m_i)
watermarking/E_SIMPLE_8.py:47
↓ 1 callers
Function
E_TRELLIS_8
(c_o, m_i, passw)
watermarking/E_TRELLIS_8.py:60
↓ 1 callers
Function
YCbCr_to_RGB
(Y, Cb, Cr)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:122
↓ 1 callers
Function
YCbCr_to_RGB
(Y, Cb, Cr)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:107
↓ 1 callers
Method
__eq__
Checks for equality.
watermarking/H[i]dden.py:44
↓ 1 callers
Method
__invert__
Calculates the Gaussian modular inverse z^-1 mod p using the Norm method: z^-1 = conjugate(z) * Norm(z)^(-1) mod p.
watermarking/H[i]dden.py:143
↓ 1 callers
Method
_back_substitution
(self, H, z)
codes/wet_paper_codes.py:108
↓ 1 callers
Method
_bits_to_bytes
(self, m)
codes/wet_paper_codes.py:75
↓ 1 callers
Method
_bits_to_bytes
(self, m)
codes/STC.py:143
↓ 1 callers
Method
_bytes_to_bits
(self, m)
codes/wet_paper_codes.py:66
↓ 1 callers
Method
_bytes_to_bits
(self, m)
codes/STC.py:134
↓ 1 callers
Method
_calc_syndrome
(self, x)
codes/STC.py:117
↓ 1 callers
Method
_conjugate
Returns the conjugate (a - bi). The optional p is for consistency with other modular methods, but this is a standard arithmetic operation.
watermarking/H[i]dden.py:124
↓ 1 callers
Method
_dual_viterbi
(self, x, w, m)
codes/STC.py:62
↓ 1 callers
Method
_find_ij
(self, H, i)
codes/wet_paper_codes.py:94
↓ 1 callers
Method
_matrix_lt_process
(self, A, b)
codes/wet_paper_codes.py:121
↓ 1 callers
Method
_norm
Returns the norm (a^2 + b^2), which is an integer.
watermarking/H[i]dden.py:133
↓ 1 callers
Method
_norm_mod_p
Returns the norm (a^2 + b^2) mod p, which is an integer.
watermarking/H[i]dden.py:137
↓ 1 callers
Method
_prepare_H
(self)
codes/ternary_random_codes.py:59
↓ 1 callers
Method
_prepare_H
(self)
codes/ternary_hamming_codes.py:46
↓ 1 callers
Function
bits_to_msg_file
(bit_list, path)
jpeg/lsbr.py:20
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
S-UNIWARD/s-uniward-color.py:65
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-RBV/j-rbv-color.py:80
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-UNIWARD/j-uniward-color.py:66
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-UNIWARD/j-uniwardfast-color.py:84
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-UNIWARD/j-uniward.py:62
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:141
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
J-UNIWARD/j-uniwardfast-rgbnr-color.py:126
↓ 1 callers
Function
calc_lambda
(rho_p1, rho_m1, message_length, n)
HILL/HILL.py:67
↓ 1 callers
Function
calibration
(path, only_first_channel=False)
calibration/calibration.py:53
↓ 1 callers
Function
compress
(spatial, quant)
J-UNIWARD/j-uniwardfast-rgbnr-wiener-color.py:110
↓ 1 callers
Function
compute_B
(residuals)
J-RBV/j-rbv-color.py:132
↓ 1 callers
Function
compute_rho
(residuals, B, quant)
J-RBV/j-rbv-color.py:142
↓ 1 callers
Function
cost_fn
(cover)
S-UNIWARD/s-uniward-color.py:116
↓ 1 callers
Function
cost_fn
(coeffs, spatial, quant)
J-RBV/j-rbv-color.py:185
↓ 1 callers
Function
cost_fn
(coeffs, spatial, quant)
J-UNIWARD/j-uniward-color.py:115
next →
1–100 of 190, ranked by callers