php - How can I create my very own encryption? -


i wondering if there better way create own encryption. have looked tips on youtube , found str_replace. when tested it, found out do. not easy decode.

 input:a b c d e f g h j k l m n o p q r s t u v w x y z output:1 2 3 4 5 6 7 8 9 b c d e f g h j k l m n o p 0 

is there better way instead math , can still decoded. instance, math, if above else this:

 input:a b c d e f g h j k l m n o p q r s t u v w x y z output:a4d1g3f4g5h1a4g2f8gfgdfgrh2352gdghh435dgfdh436dfhh 

i have tried str_replace, md5, sha1, , rot13.

you don't want this, other self-education. place start , gain practical understanding of how cryptography works in software matasano crypto challenges can find at:

http://cryptopals.com


Comments