![]() It is widely embraced by cryptographers, in opposition to security through obscurity. In that form it is called Shannon's maxim. It was reformulated (perhaps independently) by Claude Shannon as "the enemy knows the system". In cryptography, Kerckhoffs' principle (also called Kerckhoffs' assumption, axiom or law) was stated by Auguste Kerckhoffs in the 19th century: a cryptosystem should be secure even if everything about the system, except the key, is public knowledge. I think it is easy to see how to use this function. Script below will output: Key: mysecretkey There is only one function for both encrypt/decrypt. This little function will use a Secret Key to encrypt text.Īnd you would have to use same Key to decrypt it back. Sure is possible to add more complicated operations,īut I wanted to keep it small, fast and simple. If you have stuff that needs high security, you should use other tools. Most people would never be able to decode your text. This script makes it a bit more difficult to get to your information. If your need of security is not that high, ![]() Sometimes you need some simple way to avoid stuff is read by someone else.Ĭan be if you save information in files, at a server with limited options for file protection. Simple String EnCrypt + DeCrypt function.
0 Comments
Leave a Reply. |