Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Security Module

This folder contains a string-obfuscation routine.

cipher.py contains nine functions involved in the cipher / decipher functionality and three functions to create a hash.

Cross-language cipher compatibility with corresponding VBA and SQL Server implementations, enabling use across the application stack:

"elevantcoding/vba-methods/security/StringCipher.bas"
"elevantcoding/sql-methods/security/"

Example

If input string = "myString", multiple outputs of the same input produce different results:

val = "myString"

print(cipher.cipher_string(val)) 63635363796A606A616177613F793E6A607853776364E07D39B5E8EFBEB429E223B178464A7ED386AEA539FE36C2205DC2EB4B78F6A6FFA231C4B0547A56EF6EE0705D69E4E4B1DCC57850B3906C326B583AA77969866DF267F9F997D5E7C95A37B4C666DABBECD681887737897E616B6F8B48279CB1D135FDA5C3E62D6AA460

print(cipher.cipher_string(val)) 515E604B52605260515136514B606C5256344D365E672D9A476ADD5773DFA23EFC63746F2FDF666AE8F04F84FE75F556FE4F4AE9C055F7D796F5A8A27969DED733EB7D2BD0438A5BC7716138BB60D7CCFCBFA0D5B9E467742E9356876A832036E5BFC66AC74977775BA855E093B2EFF262D7EDFFC834ACD0BEE0B8DDEFAB7852

print(cipher.cipher_string(val)) 4158623F62625858424261427738454162583F6155619AB94B422A85FE66D948C68773A9C9CDCE2529C281EA3EC77E59B9E62AA7EB3EC3733276F4247065337659E7E6EB83952865EF7666E65D74D6AFA02AF13CA1A86D90E7FA56F326F1DE51ABDF2468F95E3BDFD443C3C04F7C61416FCD43697C63A23C673B6E6B608029E2