other.sdes

Attributes

key

Functions

apply_sbox(s, data)

apply_table(inp, table)

function(expansion, s0, s1, key, message)

left_shift(data)

xor(a, b)

Module Contents

other.sdes.apply_sbox(s, data)
other.sdes.apply_table(inp, table)
>>> apply_table("0123456789", list(range(10)))
'9012345678'
>>> apply_table("0123456789", list(range(9, -1, -1)))
'8765432109'
other.sdes.function(expansion, s0, s1, key, message)
other.sdes.left_shift(data)
>>> left_shift("0123456789")
'1234567890'
other.sdes.xor(a, b)
>>> xor("01010101", "00001111")
'01011010'
other.sdes.key