MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / permute

Function permute

Python/des.py:88–92  ·  view source on GitHub ↗
(k, arr, n)

Source from the content-addressed store, hash-verified

86
87
88def permute(k, arr, n):
89 permutation = ""
90 for i in range(0, n):
91 permutation = permutation + k[arr[i] - 1]
92 return permutation
93
94# shifting the bits towards left by nth shifts
95

Callers 2

encryptFunction · 0.85
des.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected