GLBasic User Manual

Main sections

ENCRYPT$()

hex$ = ENCRYPT$(code$, text$)



Encrypts a string to a hexadecimal unreadable string. The parameter code$ is used as a key.

hex$ = ENCRYPT$("secr1t", "honey@moon.com")
txt$ = DECRYPT$("secr1t", hex$)

// -> hex$ = "105d7bddc55ad98070922e2a05226c5266614425801ff379ea2a5c92ae9f686eefc896bbb88d19e0d3d36218b57ec2ef43c59d8eb78c5780c0b95bfd16d34c0d7a7a065002b6c5c1"

STDOUT "HEX:"+hex$+":\n\n"
STDOUT "TXT:"+txt$+":\n"
KEYWAIT

See also...